error in parse
On Fri, 7 Dec 2001, kjetil halvorsen wrote:
Prof Brian Ripley wrote:
What's strange?: there is an error in that file on or before line 6!
Thats not the error. Even after changing the file,. making it more reasonable, and removing some blank lines, exactly the same error occurs. And there is no syntax error in the file, cut and paste work perfectly.
The test of no syntax error is that the parser does not give an error, so *by definition* there is a syntax error. Might there be a non-printing (and hence invisible) character in there, for example? Have you done an octal dump? Are all the quote-like characters the ISO ones and not what Word likes to use? ....
Kjetil Halvorsen
On Fri, 7 Dec 2001, kjetil halvorsen wrote:
I am trying to source a file defining a dataset, giving the full path. (rw1031 on windows 98)
source("c:\\kjetil\\audiometria\\data\\audiometria.R")
Error in parse(file, n, text, prompt) : syntax error on line 6 also:
parse(file="c:\\kjetil\\audiometria\\data\\audiometria.R", n=-1)
Error in parse(file, n, text, prompt) : syntax error on line 6 This seems very strange. Trying to read the file with data() gives the same error. Kjetil Halvorsen -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._