Commit 083a3f74 authored by jlopez's avatar jlopez
Browse files

Fix R install

parent 9f2c5155
......@@ -280,7 +280,7 @@ function generate_container() {
PREVIEW += "\n############### Install R ##############\n";
if(isSingularity) {
PREVIEW += "\t"+manager+" install -y " + "make gcc gfortran g++ wget libreadline-dev" + "\n";
PREVIEW += "\t"+manager+" install -y " + "make gcc gfortran g++ libreadline-dev" + "\n";
PREVIEW += "\t"+manager+" install -y zlib1g zlib1g-dev" + "\n";
PREVIEW += "\t"+manager+" install -y bzip2 libbz2-dev" + "\n";
PREVIEW += "\t"+manager+" install -y liblzma5 liblzma-dev" + "\n";
......@@ -297,7 +297,7 @@ function generate_container() {
if(isSingularity) {
PREVIEW += '\tcd $HOME';
PREVIEW += '\n\twget https://cran.rstudio.com/src/base/R-3/R-'+ rversion+ '.tar.gz';
PREVIEW += '\n\tcurl -L https://cran.rstudio.com/src/base/R-3/R-'+ rversion+ '.tar.gz';
PREVIEW += '\n\ttar xvf R-'+ rversion+ '.tar.gz';
PREVIEW += '\n\tcd R-'+ rversion + "\n";
PREVIEW += "\t./configure --enable-R-static-lib --with-blas --with-lapack --enable-R-shlib=yes "+ "\n";
......@@ -305,7 +305,7 @@ function generate_container() {
PREVIEW += "\tmake install"+ "\n";
} else {
PREVIEW += 'RUN cd $HOME \\';
PREVIEW += '\n\t&& wget https://cran.rstudio.com/src/base/R-3/R-'+ rversion+ '.tar.gz \\';
PREVIEW += '\n\t&& curl -L https://cran.rstudio.com/src/base/R-3/R-'+ rversion+ '.tar.gz \\';
PREVIEW += '\n\t&& tar xvf R-'+ rversion+ '.tar.gz \\';
PREVIEW += '\n\t&& cd R-'+ rversion+ ' \\' + "\n";
PREVIEW += "\t&& ./configure --enable-R-static-lib --with-blas --with-lapack --enable-R-shlib=yes \\"+ "\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment