Skip to content

scan(...comment.char="#") breaks my code

2 messages · Steve Cassidy, Brian Ripley

#
I've just discovered the recent addition of the comment.char arg to scan, a 
useful feature no doubt but the default value of # rather than "" breaks my 
code which looks for # as a delimeter in a file and provides a messy 
incompatability with earlier versions of R and with Splus.   

Is there any chance that this default could be changed to ""?
#
On Tue, 19 Feb 2002, Steve Cassidy wrote:

            
It already has been. The NEWS for R-patched / R-devel says:

    o   The default has been changed to scan(comment.char="") for
        consistency with earlier code (as in the previous item).