commands.sh

R

all

R language interpreter.

More info →

Options (2)

-f, --fileboolean

Execute a file

Example: R {{[-f|--file]}} {{path/to/file.R}}
-d, --debuggerboolean

Run R with a debugger

Example: R {{[-d|--debugger]}} {{debugger}}

Examples (7)

Start a REPL (interactive shell)

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|--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
made by @shridhargupta | data from tldr-pages