Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base docker build fails due to missing caTools R package #6489

Open
mwalker174 opened this issue Mar 6, 2020 · 1 comment
Open

Base docker build fails due to missing caTools R package #6489

mwalker174 opened this issue Mar 6, 2020 · 1 comment

Comments

@mwalker174
Copy link
Contributor

Command:

bash build_docker_bash.sh

Error:

...
Step 12/13 : RUN Rscript install_R_packages.R
 ---> Running in 96b5753b6c04
Installing packages into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
Error: (converted from warning) dependency 'caTools' is not available
Execution halted
The command '/bin/sh -c Rscript install_R_packages.R' returned a non-zero code: 1

I came up with this temporary workaround in install_R_packages.R:

repos <- c("http://cran.mtu.edu")
install.packages(c("bitops"), repos = repos, clean = TRUE)
InstallPackageFromArchive("caTools", "https://cran.r-project.org/src/contrib/Archive/caTools/caTools_1.17.tar.gz")
dependencies = c("gplots",
                 "digest", "gtable", "MASS", "plyr", "reshape2", "scales", "tibble", "lazyeval", # for ggplot2
                 "tidyselect", "BH", "plogr")     # for dplyr
install.packages(dependencies, repos = repos, clean = TRUE)

which at least builds successfully.

@hsiaoyi0504
Copy link

+1 for meeting the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants