1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

rscript: add page (#6686)

This commit is contained in:
Josh Cook 2021-10-03 09:51:02 -04:00 committed by GitHub
parent 6d4248f1f1
commit 6b5364ce2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/common/rscript.md Normal file
View file

@ -0,0 +1,20 @@
# 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`