Skip to content

Running other programs from R

4 messages · Sedat Sen, Thomas Adams, Jan van der Laan +1 more

#
Have a look at the system command:

?system


HTH,

Jan
On 03/16/2013 10:09 PM, Sedat Sen wrote:
#
On Mar 16, 2013, at 2:09 PM, Sedat Sen wrote:

            
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.
Please read the Posting Guide.