SaraMA
SaraMA

Reputation: 25

Run a exe file through R

I have a .exe file, and want to run it in R! After running that exe file, a output text file will be created inside of that I do not know how to do that?

Thanks all,

Upvotes: 1

Views: 3427

Answers (1)

user9796664
user9796664

Reputation:

You can use the following line, just replacing mystring with the path of the .exe file, and cmd as the type (type = "cmd") meaning you are running it from command line

system( shQuote( "mystring" , type = c("cmd","sh") ) , ... )

Upvotes: 2

Related Questions