Leigh Michelle Williams
2013-Feb-07 15:35 UTC
[R] calling outside program to run from R - similar to X command in SAS
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. Leigh Leigh M. Williams, Ph.D. Postdoctoral Research Associate College of Education Georgia State University [[alternative HTML version deleted]]
Ben Bolker
2013-Feb-07 17:50 UTC
[R] calling outside program to run from R - similar to X command in SAS
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 simulatingsome data (which I can do in R with a> particular package) and then trying to call an outside program to fit aspecific 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 ... )
Ista Zahn
2013-Feb-07 17:50 UTC
[R] calling outside program to run from R - similar to X command in SAS
Hi Leigh, On Thu, Feb 7, 2013 at 10:35 AM, Leigh Michelle Williams <lwilliams146 at gsu.edu> wrote:> 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.The "etc." includes many things in this case!> > 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.exesee ?system ?system2 either of these will work for simply opening a program.> > Any help is appreciated. Thanks. > > Leigh > > > > Leigh M. Williams, Ph.D. > Postdoctoral Research Associate > College of Education > Georgia State University > > [[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.