Skip to content

Commit

Permalink
Merge pull request #47 from UBC-DSCI/fix-tune-cluster
Browse files Browse the repository at this point in the history
Install archived R packages to fix tune_cluster
  • Loading branch information
briank-git authored Aug 29, 2024
2 parents cafad09 + 677364d commit 686e5c5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docker/r-dsci-100/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ RUN mamba install --quiet --yes \

# Install CRAN packages
RUN Rscript -e "lib <- 'palmerpenguins'; remotes::install_github('allisonhorst/[email protected]'); if ( ! library('palmerpenguins',character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}" \
&& Rscript -e "lib <- 'tidyclust'; install.packages(lib, repos='http://cran.us.r-project.org'); if ( ! library(lib,character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}" \
&& Rscript -e "lib <- 'ISLR'; install.packages(lib, repos='http://cran.us.r-project.org'); if ( ! library(lib,character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}" \
&& Rscript -e "lib <- 'scales'; install.packages(lib, repos='http://cran.us.r-project.org'); if ( ! library(lib,character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}" \
&& Rscript -e "lib <- 'janitor'; install.packages(lib, repos='http://cran.us.r-project.org'); if ( ! library(lib,character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}" \
&& Rscript -e "lib <- 'janitor'; install.packages(lib, repos='http://cran.us.r-project.org'); if ( ! library(lib,character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}"

# Install archived CRAN packages to fix tune_cluster issue with apparent
RUN Rscript -e "options(repos=c(CRAN='https://packagemanager.rstudio.com/cran/2024-03-21')); require(devtools); install_version('Rfast', repos = 'https://packagemanager.rstudio.com/cran/2024-03-21')" \
&& Rscript -e "options(repos=c(CRAN='https://packagemanager.rstudio.com/cran/2024-03-21')); require(devtools); install_version('tidyclust', version = '0.2.1', repos = 'https://packagemanager.rstudio.com/cran/2024-03-21'); if ( ! library('tidyclust',character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}" \
&& Rscript -e "options(repos=c(CRAN='https://packagemanager.rstudio.com/cran/2024-03-21')); require(devtools); install_version('tidymodels', version = '1.1.1', repos = 'https://packagemanager.rstudio.com/cran/2024-03-21')" \
&& Rscript -e "options(repos=c(CRAN='https://packagemanager.rstudio.com/cran/2024-03-21')); require(devtools); install_version('workflowsets', version = '1.0.1', repos = 'https://packagemanager.rstudio.com/cran/2024-03-21')" \
&& Rscript -e "options(repos=c(CRAN='https://packagemanager.rstudio.com/cran/2024-03-21')); require(devtools); install_version('tune', version = '1.1.2', repos = 'https://packagemanager.rstudio.com/cran/2024-03-21')" \
&& Rscript -e "lib <- 'withr'; install.packages('https://cran.r-project.org/src/contrib/Archive/withr/withr_2.5.0.tar.gz', repos=NULL, type='source'); if ( ! library(lib,character.only=TRUE,logical.return=TRUE)){quit(status=1,save='no')}"

# Install nbgitpuller, jlab-git, newest pexpect 4.9.0
Expand Down

0 comments on commit 686e5c5

Please sign in to comment.