Skip to content
Back to formatted view

Raw Message

Message-ID: <39B6DDB9048D0F4DAD42CB26AAFF0AFA076DC7@usctmx1106.merck.com>
Date: 2005-04-14T10:11:28Z
From: Liaw, Andy
Subject: calling r, from SAS, batch mode

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