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? Thanks Yen [[alternative HTML version deleted]]
Yen Lee <b88207001 <at> ntu.edu.tw> writes:> 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?You need to tell us, as precisely as possible, what "doesn't work" means. Did R produce warnings or error messages? What were they? If you run the equivalent command (the same except for single vs double backslashes and surrounding quotation marks) "c:\program files\SAS\SAS 9.1\sas.exe" "c:\syntax.sas" outside of R (in a terminal window or from the "Run" box in Windows), does it work?
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.