Skip to content
Prev 299111 / 398503 Next

MS-DOS & script R

On 04.07.2012 14:44, cindy.dol wrote:
I don't even know how to compile R for MS-DOS to run it under that OS. I 
am using R since 1998, but we used 64-bit Solaris or 32-bit Linux or 
Windows systems at the time, but no DOS left.
Unlikely DOS supports such a name.
Actually, I guess you are going to run R in the Windows shell.
Just add the bin path of R to the PATH environment variable, go to a 
Windows command shell and start R via

Rscript filename.R

or

R CMD BATCH filename.R

from the folder where filename.R is located.

For more details and the differences of those approaches, see the manuals.

Best,
Uwe Ligges