mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 20:58:00 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/r
33
tldr/r
@@ -3,35 +3,14 @@ syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# R
|
||||
# r
|
||||
|
||||
> R language interpreter.
|
||||
> More information: <https://manned.org/R>.
|
||||
> `r` can refer to multiple commands with the same name.
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
- View documentation for the R language interpreter:
|
||||
|
||||
`R`
|
||||
`tldr r.1`
|
||||
|
||||
- Start R in vanilla mode (i.e. a blank session that doesn't save the workspace at the end):
|
||||
- View documentation for the Zsh command:
|
||||
|
||||
`R --vanilla`
|
||||
|
||||
- Execute a file:
|
||||
|
||||
`R {{[-f|--file]}} {{path/to/file.R}}`
|
||||
|
||||
- Execute an R expression and then exit:
|
||||
|
||||
`R -e {{expr}}`
|
||||
|
||||
- Run R with a debugger:
|
||||
|
||||
`R {{[-d|--debugger]}} {{debugger}}`
|
||||
|
||||
- Check R packages from package sources:
|
||||
|
||||
`R CMD check {{path/to/package_source}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`R --version`
|
||||
`tldr r.zsh`
|
||||
|
||||
Reference in New Issue
Block a user