We use lsb_release -cs to access which Ubuntu flavor the machine is running. Sudo add-apt-repository "deb $(lsb_release -cs)-cran40/" # add the R 4.0 repo from CRAN - adjust 'focal' to 'groovy' or 'bionic' as needed Wget -qO- | sudo tee -a /etc/apt//cran_ubuntu_key.asc # To verify key, run gpg -show-keys /etc/apt//cran_ubuntu_key.asc The CRAN repository for Ubuntu is signed with the key of “Michael Rutter all of this can be done by running the following: # add the signing key (by Michael Rutter) for these repos After, we only need to add the key so that apt can perform signature checking of the Release File for the added repository to verify its authenticity. To do this we can make an entry in /etc/apt/sources.list file by running sudo nano /etc/apt/sources.list and pasting in deb -cran40/ (where may be and is the Ubuntu release code name adjective). So we are going to tell apt install to obtain the latest version from a CRAN repository. R ( r-base) can be installed by simply running apt install, but the version of R in the default repository is usually not up-to-date. Sudo apt install -no-install-recommends software-properties-common dirmngr Software-properties-common for managing the repositories that you install software from.ĭirmngr for managing and downloading certificate revocation lists and for downloading the certificates themselves. Install helper software software-properties-common and dirmngr
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |