-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_r_deps.sh
executable file
·42 lines (34 loc) · 1.22 KB
/
install_r_deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/sh
apt-get -yqq update
apt-get -yqq install gnupg2 ca-certificates
# add CRAN to apt sources
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
printf '\n#CRAN mirror\ndeb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/\n' | tee -a /etc/apt/sources.list
# update apt
apt-get -y update
apt-get -y upgrade
# requisites for RStudio
apt-get -y install gdebi-core
# requisites for different R packages
# this aims at covering as much packages as possible
# see https://packagemanager.rstudio.com/client/#/repos/1/overview
# and also
# https://geocompr.github.io/post/2020/installing-r-spatial-ubuntu/
# http://dirk.eddelbuettel.com/blog/2020/06/22#027_ubuntu_binaries
# this a broad, general setup, no fine detail here
apt-get -y install software-properties-common libopenblas-dev libsodium-dev texlive default-jdk
# saw error about this during install - MP
# this is for pkgdown
apt-get -y install \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev
# required to install rshiny / rstudio:
apt-get install wget
add-apt-repository -y ppa:c2d4u.team/c2d4u4.0+
apt-get -qq purge
apt-get -qq clean
rm -rf /var/lib/apt/lists/*