aims-install-r40 471 Bytes
Newer Older
Jan Groenewald's avatar
Jan Groenewald committed
1
2
#!/bin/bash

3
echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran40/" > /etc/apt/sources.list.d/cran.list
4
gpg --keyserver=keys.openpgp.org --recv-keys E19F5F87128899B192B1A2C2AD5F960A256A04AF
Jan Groenewald's avatar
Jan Groenewald committed
5
apt-get -qq update
6
apt-get -yf install r-base r-base-dev r-recommended
Jan Groenewald's avatar
Jan Groenewald committed
7
8
9
10
11
12
13

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"