Friday, September 08, 2017

Run Microsoft R Open Script From Command Prompt

Microsoft R Open is Multi-core environment developed on Core R. Microsoft R Open (MRO), formerly known as Revolution R Open (RRO), is the enhanced distribution of R from Microsoft Corporation. It is a complete open source platform for statistical analysis and data science. Microsoft R Open 3.4.1 is coming September 11th.

MRO comes with Microsoft R Open GUI and you can also use it in RStudio IDE. But in case you want to run it from command prompt, it is pretty easy.

First you need to set Path in environment variable.


For 32-bit version path would be like: C:\Program Files\Microsoft\R Open\R-3.4.0\bin
For 64-bit version path would be like: C:\Program Files\Microsoft\R Open\R-3.4.0\bin\x64


Now save it and restart command prompt if already open or open a new command prompt window.

Type command "where rscript" and check whether it returns a correct path.


Now you can type command "rscript your_script.r" and it will get executed. Note that RStudio commands like "show" won't work from Rscript and only R/MRO commands will work.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.