How do I run an R script in terminal?

How do I run an R script in terminal?
Answer
Here is how it goes step by step.
  1. Find the path to R.exe or Rscript.exe on your computer. …
  2. Open Notepad and combine paths together (with quotation marks if needed and additional commands “CMD BATCH” if you choose to go with R.exe).
  3. Save as file with extension . …
  4. Run that batch file to execute R script.
 

Tìm kiếm

Back
Top