[R] Calling SAS from R

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Feb 28 17:33:07 CET 2010



On 28.02.2010 17:17, Yen Lee wrote:
> I'm new to post in R-help and my native language is not English.
>
> I apologize if my sentence is not fluent to read.
>
>
>
> I am doing a simulation study and I need to execute SAS and read a SAS code
> in R.
> I try the following code but it doesn't work.
> system('"c:\\program files\\SAS\\SAS 9.1\\sas.exe" "c:\\syntax.sas"')
> can anyone give me some help with this?

Use shell()...

Uwe Ligges

>
> Thanks
>
>
>
> Yen
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list