Ubuntu / Debian
$ sudo apt install -y r-base
Optionally r-base-html
might be installed to browse the hyperlinked documentation and r-doc-html
to install important R manuals locally:
$ sudo apt install -y r-doc-html r-base-html
Chocolatey
choco install -y r.project --params "/AddToPath"
R-Studio:
choco install -y r.studio
choco install -y rtools
Apparently, after installing Rtools, the environment variable needs to be put into
~/.Renviron
(note that in Windows, the tilde (
~
) expands to
C:\Users\username\Documents
).
write('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', file = "~/.Renviron", append = TRUE)