1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-10 00:06:01 +02:00
tldr/pages/common/rscript.md
2025-05-09 23:10:35 +05:30

20 lines
425 B
Markdown

# Rscript
> Run a script with the R programming language.
> More information: <https://manned.org/Rscript>.
- 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`