Error in parse
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
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
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) 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: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._