Re: [Rd] parser does not catch strings without closing quote

2011-09-02 Thread Duncan Murdoch
On 11-09-01 6:24 PM, William Dunlap wrote: Shouldn't the parser complain about unfinished strings in files? It doesn't and will tack on a newline if there isn't one there. > withOption<- function(optionList, expr) { + oldOption<- options(optionList) + on.exit(options(oldOption)

Re: [Rd] parser does not catch strings without closing quote

2011-09-02 Thread William Dunlap
By the way, I noticed the problem in R because S+ could not parse a file in the CRAN package SAPP because it ended with a garbage line with a quote in it: % tail -3 SAPP/data/res2003JUL26.R res2003JUL26 <- data.frame(res2003JUL26) names(res2003JUL26) <- c("no.", "longitude", "latitude", "mag

Re: [Rd] parser does not catch strings without closing quote

2011-09-02 Thread Duncan Murdoch
On 02/09/2011 11:28 AM, William Dunlap wrote: By the way, I noticed the problem in R because S+ could not parse a file in the CRAN package SAPP because it ended with a garbage line with a quote in it: % tail -3 SAPP/data/res2003JUL26.R res2003JUL26<- data.frame(res2003JUL26) names(res20