Dear list, I want to run a statistical program (using its .exe file) from R by writing a script. I know there are some packages that call WinBUGS, Mplus etc. form R. I just want to call the .exe extension of this program and run several times writing a code in R. Thus, I want to have the output inside R. I just don't know where to start. Does anyone have any idea about that? Is there a universal package to call application files of other stat programs using their application files. p.s. The program I am talking about is an IRT program called Multilog. -- *Sedat * [[alternative HTML version deleted]]
Use the system() command. e.g." system("Multilog") On Sat, Mar 16, 2013 at 5:09 PM, Sedat Sen <sedatsen06@gmail.com> wrote:> Dear list, > > I want to run a statistical program (using its .exe file) from R by > writing a script. I know there are some packages that call WinBUGS, Mplus > etc. form R. I just want to call the .exe extension of this program and run > several times writing a code in R. Thus, I want to have the output inside > R. > > I just don't know where to start. Does anyone have any idea about that? Is > there a universal package to call application files of other stat programs > using their application files. > > p.s. The program I am talking about is an IRT program called Multilog. > > -- > *Sedat > * > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. >-- Thomas E Adams, III 718 McBurney Drive Lebanon, OH 45036 1 (513) 739-9512 (cell) [[alternative HTML version deleted]]
Have a look at the system command: ?system HTH, Jan On 03/16/2013 10:09 PM, Sedat Sen wrote:> Dear list, > > I want to run a statistical program (using its .exe file) from R by > writing a script. I know there are some packages that call WinBUGS, Mplus > etc. form R. I just want to call the .exe extension of this program and run > several times writing a code in R. Thus, I want to have the output inside R. > > I just don't know where to start. Does anyone have any idea about that? Is > there a universal package to call application files of other stat programs > using their application files. > > p.s. The program I am talking about is an IRT program called Multilog. >
On Mar 16, 2013, at 2:09 PM, Sedat Sen wrote:> Dear list, > > I want to run a statistical program (using its .exe file) from R by > writing a script. I know there are some packages that call WinBUGS, Mplus > etc. form R. I just want to call the .exe extension of this program and run > several times writing a code in R. Thus, I want to have the output inside R. > > I just don't know where to start. Does anyone have any idea about that? Is > there a universal package to call application files of other stat programs > using their application files. > > p.s. The program I am talking about is an IRT program called Multilog.Even though you have been advised to use system() I don't think that will necessarily return your values "inside R". You will need to supply arguments to that external function and direct it to write to a file from which you can extract its output using text processing in R. You will probably need to examine the (open source) methods used by packages that call those external programs if you demand the same level of integration as provided for example in the R2WinBUGS package.> [[alternative HTML version deleted]]Please read the Posting Guide. -- David Winsemius Alameda, CA, USA