mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 21:47:29 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
25
tldr/rscript
Normal file
25
tldr/rscript
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user