Rscript
Run a script with the R programming language. More information: https://www.r-project.org.
-
Run a script:
Rscript {{path/to/file.R}}
-
Run a script in vanilla mode (i.e. a blank session that doesn't save the workspace at the end):
Rscript --vanilla {{path/to/file.R}}
-
Execute one or more R expressions:
Rscript -e {{expression1}} -e {{expression2}}
-
Display R version:
Rscript --version
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.