Index of /bin/linux/ubuntu

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]README2021-03-06 16:41 1.6K 
[TXT]README.html2021-03-06 16:38 16K 
[DIR]bionic-cran35/2021-03-07 14:07 -  
[DIR]bionic-cran40/2021-03-07 14:08 -  
[DIR]focal-cran40/2021-03-07 14:08 -  
[   ]fullREADME2021-03-06 16:42 7.9K 
[TXT]fullREADME.html2021-03-06 16:42 21K 
[DIR]groovy-cran40/2021-03-07 14:08 -  
[   ]olderreleasesREADME2021-03-06 16:41 5.7K 
[TXT]olderreleasesREADME.html2021-03-06 16:41 18K 
[DIR]trusty-cran35/2021-03-07 14:06 -  
[DIR]trusty/2021-03-07 14:04 -  
[DIR]xenial-cran35/2021-03-07 14:06 -  
[DIR]xenial-cran40/2021-03-07 14:07 -  
[DIR]xenial/2021-03-07 14:05 -  

Ubuntu Packahges For R - Brief Instructions

Ubuntu Packahges For R - Brief Instructions

Install R

Run these lines (as root or by prefixing sudo) to tell Ubuntu about the R binaries at CRAN.

# update indices
apt update -qq
# install two helper packages we need
apt install --no-install-recommends software-properties-common dirmngr
# import the signing key (by Michael Rutter) for these repo
apt-key adv --keyserver --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
add-apt-repository "'deb '$(lsb_release -sc)'-cran40/'"

Here we use lsb_release -cs to access which Ubuntu flavor you run: one of “groovy”, “focal”, “bionic”, …

Then run

apt install --no-install-recommends r-base

to to install R and its dependencies.

For more detailed instructions, including details on administration and maintenance of R Packages, see the full README.

For older R releases, see the corresponding README.

Get 5000+ CRAN Packages

Run this command (as root or by prefixing sudo) to add the current R 4.0 or later ‘c2d4u’ repository:


to add the key id for this repository, add the repository, and update the index. You can now do apt install --no-install-recommends r-cran-rstan or apt install --no-install-recommends r-cran-tidyverse (again as user root or via sudo)