[R] calling r, from SAS, batch mode

Liaw, Andy andy_liaw at merck.com
Thu Apr 14 12:11:28 CEST 2005


> From: Y Y
> 
> I generally work in SAS but have some graphics features I 
> would like to
> run in r.   I would like to do this 'automatically' from SAS.
> 
> I'm thinking of  something along the lines of putting the r 
> code in a text
> file and calling system of x on it;  r would expect the data 
> in a certain place,
> and my SAS would drop the data in the right place/filename 
> before invoking
> r.
> 
> x 'r.exe myfile.r';
> 
> Does anybody have any experience using r from within SAS like this
> or in a better way ?
> 
> Alas, searching for a one word character r to find an archived answer
> is not easy SAS-L.

You could have started by searching in the FAQs, in 
particular, R for Windows FAQ section 2.13.
 
Andy
 
> S.
> ssquid at gmail.com
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 
>




More information about the R-help mailing list