2020-11-21 03:06:39 +00:00
|
|
|
# R
|
|
|
|
|
|
|
|
> R language interpreter.
|
|
|
|
> More information: <https://www.r-project.org>.
|
|
|
|
|
2021-09-12 15:03:27 +01:00
|
|
|
- Start a REPL (interactive shell):
|
2020-11-21 03:06:39 +00:00
|
|
|
|
|
|
|
`R`
|
|
|
|
|
|
|
|
- Start R in vanilla mode (i.e. a blank session that doesn't save the workspace at the end):
|
|
|
|
|
|
|
|
`R --vanilla`
|
|
|
|
|
|
|
|
- Execute a file:
|
|
|
|
|
|
|
|
`R -f {{path/to/file.R}}`
|
|
|
|
|
|
|
|
- Execute an R expression and then exit:
|
|
|
|
|
|
|
|
`R -e {{expr}}`
|
|
|
|
|
|
|
|
- Run R with a debugger:
|
|
|
|
|
|
|
|
`R -d {{debugger}}`
|
|
|
|
|
|
|
|
- Check R packages from package sources:
|
|
|
|
|
|
|
|
`R CMD check {{path/to/package_source}}`
|
2024-01-30 04:55:24 +00:00
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
`R --version`
|