-
Notifications
You must be signed in to change notification settings - Fork 1
/
_R_packages
executable file
·34 lines (31 loc) · 2.42 KB
/
_R_packages
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
#!/bin/bash
# Create local R lib to install libraries
export R_LIBS="~/rlibs"
mkdir -p ~/rlibs
# Also create the .Renviron file so that R knows form now on where to look.
echo "R_LIBS='~/rlibs'" >> ~/.Renviron
# Download and install packages into lib
Rscript -e 'install.packages("data.table", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("datasets.table", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("raster", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("gdistance", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("maptools", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("rgdal", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("caret", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("Matrix", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("lubridate", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("stringr", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("dplyr", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("ggplot2", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("ranger", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("reshape2", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("recommenderlab", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("Rcpp", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("pROC", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("repr", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("pbdZMQ", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("feather", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'install.packages("devtools", repos="http://cloud.r-project.org/", lib=.libPaths()[1])'
Rscript -e 'devtools::install_github("IRkernel/IRdisplay")'
Rscript -e 'devtools::install_github("IRkernel/IRkernel")'
Rscript -e 'IRkernel::installspec()'