How do I run an R file in Terminal?

Julipkq

New member
How do I run an R file in Terminal?
Answer
  1. To run a command you could also use Rscript -e “getwd()” in the terminal. …
  2. You can also use r -e “cat(getwd(),’n’)” if you have littler installed. …
  3. One should use R -r ‘options(warn=2); install…’ in order to halt the execution and get a non-zero error code in case the installation fails.
3 авг. 2015 г.
 

Tìm kiếm

Back
Top