aims-install-r40 477 Bytes
Newer Older
1
2
#!/bin/bash

3
echo "deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/" > /etc/apt/sources.list.d/cran.list
4
gpg --keyserver keyserver.ubuntu.com --recv-keys E19F5F87128899B192B1A2C2AD5F960A256A04AF
5
6
7
8
9
10
11
12
13
apt-get -qq update
apt-get -yf install r-base r-base-dev r-recommended

echo "You may want to:"
echo " * sudo apt-get -y autoremove"
echo " * sudo apt-get clean"
echo " * re-install any R packages in ~/.local/lib/R/site-packages or /usr/local/lib/R/site-packages"