[R] calling outside program to run from R - similar to X command in SAS

Ben Bolker bbolker at gmail.com
Thu Feb 7 18:50:35 CET 2013


Leigh Michelle Williams <lwilliams146 <at> gsu.edu> writes:

> 
> I'm new to R and have not been able to find what I am looking for online.
> I found the system command but that
> seems to be used for getting lists of directories, etc.
> 
> I am trying to replicate something that I used to do in SAS. I am simulating
some data (which I can do in R with a
> particular package) and then trying to call an outside program to fit a
specific model to the data. In SAS,
> the commands would have been
> 
> x softwarename.exe
> x commandfilename.exe
> 
> Any help is appreciated. Thanks.\

  Are you sure that system() is *not* what you're looking for?
  Have you tried 

system("softwarename.exe") 

? (Be sure to read the "differences between Unix and Windows" section
carefully -- you may need shell("softwarename.exe") instead ... )



More information about the R-help mailing list