-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathinstall.sh
executable file
·26 lines (19 loc) · 1 KB
/
install.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
#!/bin/bash
# This file is supposed to install dimRed and all dependencies and development
# tools for the R version chosen below.
# R_FOLDER=/usr/bin
# R_FOLDER=$HOME/progs/R/R-3.5.1/bin
# R_FOLDER=$HOME/progs/R/R-3.5.2/bin
# R_FOLDER=$HOME/progs/R/R-3.5.3/bin
R_FOLDER=$HOME/progs/R/R-3.6.0/bin
# R_FOLDER=$HOME/progs/R/R-devel/bin
$R_FOLDER/R --version
pkgversion=$(cat DESCRIPTION | grep Version | sed 's|Version: \(.*\)|\1|')
echo "INSTALLING version $pkgversion"
$R_FOLDER/R CMD INSTALL dimRed_$pkgversion.tar.gz
$R_FOLDER/R -e 'install.packages(c("NMF", "magrittr", "DRR", "lintr", "knitr"), Ncpus = 4, ask = FALSE, repos = "https://cloud.r-project.org")'
$R_FOLDER/R -e 'options(Ncpus = 4, repos = "https://cloud.r-project.org"); dimRed::installSuggests()'
# $R_FOLDER/R -e 'tensorflow::install_tensorflow()'
# $R_FOLDER/R -e 'keras::install_keras()'
pip install --user --upgrade tensorflow keras umap-learn
$R_FOLDER/R -e 'options(Ncpus = 4, repos = "https://cloud.r-project.org"); install.packages("devtools")'