Error in parse

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Mon, 22 Dec 1997 10:24:20 +0100


>>>>> 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?

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._