LinuxCommandLibrary

r

TLDR

Start R interpreter

$ R
copy
Run script
$ R --file=[script.R]
copy
Execute and print
$ Rscript -e "[print(1+1)]"
copy
Run script silently
$ R --slave --file=[script.R]
copy
No save on exit
$ R --no-save
copy

SYNOPSIS

R [options] [file]

DESCRIPTION

R is statistical computing language. Data analysis and graphics.
The tool provides interactive environment. Statistical programming.
R analyzes data.

PARAMETERS

FILE

R script to run.
--file FILE
Execute script.
--slave
Silent mode.
--no-save
Don't save workspace.
--vanilla
No init files.
-e EXPR
Execute expression.

CAVEATS

Separate from Rscript. Interactive by default.

HISTORY

R was created by Ross Ihaka and Robert Gentleman at University of Auckland.

SEE ALSO

Rscript(1), python(1)

Copied to clipboard