Error in parse
Peter Dalgaard BSA
27 Dec 1997 02:50:53 +0100
Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:
> >>>>> Paul Gilbert writes:
> > In R 0.60.1 when I source a fairly large file of code I am getting:
> > Error in parse(file, n, text, prompt) : syntax error on line 2985
> > I don't see any error and it doesn't happen if I split the file in two
> > pieces. increasing -v -n does not seem to help and does not change
> > the location of the error. Does anyone have suggestions?
> Two suggestions:
> * Does the problem occur at the end of the file? Then, the problem
> might be a final newline ...
> * Does the file contain ASCII 0 characters?
- and a third:
Are you by any chance executing external programs with system()? This
is playing tricks on "make tests" at them moment, because the pager
eats up the remainder of the input file...I suspect that source()
within source() will do weird things too.
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (firstname.lastname@example.org) FAX: (+45) 35327907
r-devel 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: email@example.com