[R] Executing an external executable from within R?

Jason Rupert jasonkrupert at yahoo.com
Tue Mar 24 21:14:49 CET 2009


For example, from within an R script I would like to be able to launch NotePad.exe.  

Is there an R call for launching Notepad.exe from within R? 

I've tried the following, but they don't seem to work:
> system(paste('"C:/WINDOWS/NOTEPAD.exe"'), wait = FALSE)
> system("C:/WINDOWS/NOTEPAD.exe", wait = FALSE)
> system("NOTEPAD", wait = FALSE)

That is, these do not bring up the Notepad GUI.  

Thanks for any insights.




More information about the R-help mailing list