Nguyễn Thị Lan
New member
How do I run an R code in Linux?
Answer
Running R in batch mode on Linux
Answer
Running R in batch mode on Linux
- use Rscript. First things first: the best program to run R scripts in batch mode is Rscript , which comes with R. …
- run Rscript with a shebang. …
- use optparse to read command line arguments. …
- use cat() to write output.