mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:22:07 +02:00
R: fix command case and add examples (#4957)
This commit is contained in:
parent
166688ddeb
commit
f09651b375
2 changed files with 32 additions and 16 deletions
32
pages/common/R.md
Normal file
32
pages/common/R.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# R
|
||||
|
||||
> R language interpreter.
|
||||
> More information: <https://www.r-project.org>.
|
||||
|
||||
- Start an R interactive shell (REPL):
|
||||
|
||||
`R`
|
||||
|
||||
- Check R version:
|
||||
|
||||
`R --version`
|
||||
|
||||
- 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}}`
|
|
@ -1,16 +0,0 @@
|
|||
# r
|
||||
|
||||
> R language interpreter.
|
||||
> More information: <https://www.r-project.org>.
|
||||
|
||||
- Start an R interactive shell (REPL):
|
||||
|
||||
`R`
|
||||
|
||||
- Check R version:
|
||||
|
||||
`R --version`
|
||||
|
||||
- Execute a file:
|
||||
|
||||
`R -f {{file.R}}`
|
Loading…
Add table
Reference in a new issue