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

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Apr 22 17:32:16 CEST 1999


Alex Buerkle <cbuerkle at bio.indiana.edu> writes:

> echo "source ('tmp0.r')" | R --no-save --no-restore
> 
> This works.  
> 
> I am still not clear on why the command-line redirection did not work
> (R --no-save --no-restore < tmp.r).  Is there a difference between how
> R handles input received from a unix pipe versus from redirection?

No. But there are substantial differences between how it handles
source() vs. how it deals with redirected input. Try deciphering the
source function and you'll see. 

As to your original problem: From 0.63.3 to 0.64.0

BUG FIXES

    o   strsplit(), scan() and friends use a much larger char buffer
         (still fixed size; this will change again)

and 0.64.1 (out in a fortnight or so) will have


    o   load / save / data allow unlimited string sizes.

    o   strsplit() allows unlimited string size.


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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