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

Fix "Error in loadNamespace(name) : there is no package called ‘BiocInstaller’" error #3222

Closed
arkid15r opened this issue Mar 2, 2023 · 1 comment

Comments

@arkid15r
Copy link
Contributor

arkid15r commented Mar 2, 2023

Context

In order to restore staging/prod deploy process CI/CD tests need to be fixed.

Problem or idea

#12 6.385 * Querying repositories for available source packages ... Done!
#12 18.65 Retrieving 'https://cloud.r-project.org/src/contrib/Archive/renv/renv_0.16.0.tar.gz' ...
#12 18.77       OK [downloaded 981 Kb in 0.11 seconds]
#12 19.03 Retrieving 'https://cloud.r-project.org/src/contrib/codetools_0.2-19.tar.gz' ...
#12 19.20       OK [downloaded 37.3 Kb in 0.16 seconds]
#12 19.37 Error in loadNamespace(name) : there is no package called ‘BiocInstaller’
#12 19.37 Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
#12 19.37 Traceback (most recent calls last):
#12 19.37 15: renv::restore(prompt = FALSE, rebuild = TRUE)
#12 19.37 14: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
#12 19.37 13: retrieve(packages)
#12 19.37 12: handler(package, renv_retrieve_impl(package))
#12 19.37 11: renv_retrieve_impl(package)
#12 19.37 10: renv_scope_bioconductor(project = project)
#12 19.37  9: renv_bioconductor_repos(project = project, version = version)
#12 19.37  8: renv_bioconductor_repos_biocinstaller(version)
#12 19.37  7: asNamespace("BiocInstaller")
#12 19.37  6: getNamespace(ns)
#12 19.37  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
#12 19.37  4: tryCatchList(expr, classes, parentenv, handlers)
#12 19.37  3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
#12 19.37  2: value[[3L]](cond)
#12 19.37  1: stop(e)
#12 19.37 Execution halted
#12 ERROR: process "/bin/bash -o pipefail -c Rscript renv_load.R" did not complete successfully: exit code: 1
------
 > [ 5/15] RUN Rscript renv_load.R:
#12 19.37  9: renv_bioconductor_repos(project = project, version = version)
#12 19.37  8: renv_bioconductor_repos_biocinstaller(version)
#12 19.37  7: asNamespace("BiocInstaller")
#12 19.37  6: getNamespace(ns)
#12 19.37  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
#12 19.37  4: tryCatchList(expr, classes, parentenv, handlers)
#12 19.37  3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
#12 19.37  2: value[[3L]](cond)
#12 19.37  1: stop(e)
#12 19.37 Execution halted
------
Dockerfile.downloaders:10
--------------------
   8 |     COPY workers/R/dependencies/downloaders/renv.lock .
   9 |     COPY workers/R/renv_load.R .
  10 | >>> RUN Rscript renv_load.R
  11 |
  12 |     COPY workers/data_refinery_workers/downloaders/requirements.txt .
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c Rscript renv_load.R" did not complete successfully: exit code: 1

Solution or next step

Troubleshoot and fix the R exception.

@arkid15r
Copy link
Contributor Author

Resolved by #3231.

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

1 participant