LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

r

Statistical computing and graphics language

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 a language and interactive environment for statistical computing, data analysis, and graphics. It provides a wide variety of statistical techniques including linear and nonlinear modeling, time-series analysis, classification, and clustering, along with a powerful system for producing publication-quality plots and visualizations.The interactive console supports exploratory data analysis with immediate feedback, while scripts can be executed non-interactively via --file or through the companion Rscript command. R's package ecosystem on CRAN offers thousands of contributed libraries extending its capabilities across fields from bioinformatics to econometrics. The workspace system saves objects between sessions, though --no-save and --vanilla flags allow clean stateless execution for reproducible workflows.

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.

INSTALL

sudo apt install r-cran-littler
copy
sudo pacman -S r
copy
brew install r
copy

CAVEATS

Separate from Rscript. Interactive by default.

HISTORY

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

SEE ALSO

python(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid