[R] source("filename") vs. input from command-line

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Apr 22 23:52:53 CEST 1999


On 22 Apr 1999, Peter Dalgaard BSA wrote:

> Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
> 
> > On Thu, 22 Apr 1999, Alex Buerkle wrote:
> > 
> > > 
> 
> > > > It appears that when the vector is long, say 121 x 17 digits numbers, the
> > > > new line character is not recognized, because R prints a newline, but puts
> > > > the '+' continuation symbol on the next line, and does so for each
> > > > subsequent line, as follows ...
> > > 
> > > BR> The NL is only used to break up input: this is saying that what it
> > > BR> has seen so far is syntactically incomplete.  Is this a standard
> > > BR> Unix text file (if you are on Unix)?
> > > 
> > > It is a standard text file.  If it were syntactially incomplete, sourcing
> > 
> > That is not what I asked!
> > 
> > > it from the R prompt would fail, but it doesn't.
> > 
> > But the version read from the file is syntactically incomplete.... This
> > implies that something is going wrong in the read.
> 
> Hehe. You've been doing too little Perl hacking, Brian! When a Perl
> hacker says that he has 121 17 digit numbers followed by a NL, he
> means that he has *one* input line which is over 2k long...

To, the contrary, I have been doing far too much recently, as you will see
when Rd2hlp gets released. To the point that I would never do that, and
precisely my point about the file: there had to be something unusual about
it.


-- 
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list