Last active
May 3, 2021 09:23
-
-
Save fegue/bc42c155df26cc03d0e2ae896614728e to your computer and use it in GitHub Desktop.
[R Libraries] Install common R libraries with Linux dependencies #R #linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install common packages; the tidyverse commes with a LOT of dependencies | |
R --vanilla << EOF | |
install.packages(c("tidyverse", "data.table", "devtools"), repos = "https://cran.rstudio.com/") | |
q() | |
# Install common packages for spatial operations | |
sudo apt install libgdal-dev gdal-bin libproj-dev libudunits2-dev | |
R --vanilla << EOF | |
install.packages(c("rgdal", "rgeos", "sp", "sf", "raster"), repos = "https://cran.rstudio.com/") | |
q() | |
# Install packages for parallel processing | |
R --vanilla << EOF | |
install.packages(c("furrr", "parallel", "foreach", "doFuture"), repos = "https://cran.rstudio.com/") | |
q() | |
# Install common graphics libraries | |
sudo apt install libcairo2-dev libmagick++-dev | |
R --vanilla << EOF | |
install.packages(c("RColorBrewer", "viridis", "leaflet", "mapview"), repos = "https://cran.rstudio.com/") | |
q() | |
# Install markdown & shiny stuff | |
R --vanilla << EOF | |
install.packages(c("rmarkdown", "shiny", "kableExtra", "flexdashboard"), repos = "https://cran.rstudio.com/") | |
q() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment