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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
What's strange?: there is an error in that file on or before line 6! 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 6Reading the error message I think the following: Have a closer look at line 6 of the file audiometria.R, there seems to be a syntax error, as the error message tells us. Uwe -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._