Marc van der Peet Marc van der Peet - 1 year ago 109
R Question

Creating an executable R-file

I want to make an executable R-file (for automation purposes). Therefore I concluded the following tutorial.

After completion however nothing happens... Only the .Rexec file opening in RStudio (in stead of running it and showing me the pop up...

Any more people experienced this? Any clues to where to look to fix this?

Answer Source

The tutorial you gave is useful. However, it missed something. After done all the things in that blog, you still need to do one more thing. Right click on the "test.Rexec" file and choose "open with" and then select "RScript". Maybe you need to find RScript in your system which is usually here:

C:\Program Files\R\R-3.2.1\bin\Rscript.exe

Remeber to check the "Always use the selected program to open this kind of file". Next time, when you double click the "test.Rexec" file, evethying would be okay.