Closed clauswilke closed 3 years ago
Hi @hadley @gaborcsardi I am also getting this error.
> revdepcheck::revdep_check("MultiAssayExperiment", num_workers = 34)
── INSTALL ────────────────────────────────────────────────────────────────────────────────────────────── 2 versions ──
Installing CRAN version of MultiAssayExperiment
Installing DEV version of MultiAssayExperiment
Error: Failed to install 'MultiAssayExperiment' from local:
(converted from warning) installation of package '/tmp/RtmprG4GEN/fileb755a561556/MultiAssayExperiment_1.17.14.tar.gz' had non-zero exit status
Here is my traceback()
.
> traceback()
14: stop(remote_install_error(remotes[[i]], e))
13: value[[3L]](cond)
12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
11: tryCatchList(expr, classes, parentenv, handlers)
10: tryCatch(res[[i]] <- install_remote(remotes[[i]], ...), error = function(e) {
stop(remote_install_error(remotes[[i]], e))
})
9: install_remotes(remotes, dependencies = dependencies, upgrade = upgrade,
force = force, quiet = quiet, build = build, build_opts = build_opts,
build_manual = build_manual, build_vignettes = build_vignettes,
repos = repos, type = type, ...)
8: install_local(pkg, quiet = quiet, repos = get_repos(bioc = TRUE),
force = TRUE, upgrade = "always")
7: rlang::with_options(warn = 2, install_local(pkg, quiet = quiet,
repos = get_repos(bioc = TRUE), force = TRUE, upgrade = "always"))
6: force(code)
5: with_libpaths(dir_find(pkg, "new"), rlang::with_options(warn = 2,
install_local(pkg, quiet = quiet, repos = get_repos(bioc = TRUE),
force = TRUE, upgrade = "always")))
4: force(code)
3: with_envvar(c(CRANCACHE_REPOS = "cran,bioc", CRANCACHE_QUIET = "yes",
env), with_libpaths(dir_find(pkg, "new"), rlang::with_options(warn = 2,
install_local(pkg, quiet = quiet, repos = get_repos(bioc = TRUE),
force = TRUE, upgrade = "always"))))
2: revdep_install(pkg, quiet = quiet, env = env)
1: revdepcheck::revdep_check("MultiAssayExperiment", num_workers = 34)
I am using the latest version on the master
branch
> packageVersion("revdepcheck")
[1] '1.0.0.9001'
Set the R_REMOTES_NO_ERRORS_FROM_WARNINGS="true"
env var, or use dev remotes.
Hi @gaborcsardi cc: @hadley
Thanks for your response. This is still not working.
I've tried true
and false
and I get the same error with the devel version of remotes.
> Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="false")
> Sys.getenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS")
[1] "false"
> revdepcheck::revdep_check("MultiAssayExperiment", num_workers = 34)
── INSTALL ────────────────────────────────────────────────────────────────────────────────────────────── 2 versions ──
Installing CRAN version of MultiAssayExperiment
Installing DEV version of MultiAssayExperiment
Error: Failed to install 'MultiAssayExperiment' from local:
(converted from warning) installation of package '/tmp/RtmpTLFlIl/file1418f645f430e/MultiAssayExperiment_1.17.14.tar.gz' had non-zero exit status
## remotes devel version
> packageVersion("remotes")
[1] '2.2.0.9000'
You don't need to set it to anything for dev remotes.
Sorry Gábor @gaborcsardi, it still doesn't work.
As you can see, the package installs with R CMD INSTALL
and even with remotes::install_local(force = TRUE)
.
> library(revdepcheck)
> revdep_check(".", num_workers = 34)
── INSTALL ────────────────────────────────────────────────────────────────────────────────────────────── 2 versions ──
Installing CRAN version of MultiAssayExperiment
Installing DEV version of MultiAssayExperiment
Error: Failed to install 'MultiAssayExperiment' from local:
(converted from warning) installation of package '/tmp/RtmpE8WoVL/file27df36ab1ed5/MultiAssayExperiment_1.17.14.tar.gz' had non-zero exit status
> Sys.getenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS")
[1] ""
> packageVersion("remotes")
[1] '2.2.0.9000'
mramos@computer ~/gh/MultiAssayExperiment (branch) $ Rdev CMD INSTALL .
* installing to library '/mnt/STORE1/bighome/mramos/R/bioc-devel'
* installing *source* package 'MultiAssayExperiment' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (MultiAssayExperiment)
> remotes::install_local(force = TRUE)
✔ checking for file ‘/tmp/RtmpGlBcx6/file1fec435b43f0/MultiAssayExperiment/DESCRIPTION’ ...
─ preparing ‘MultiAssayExperiment’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘MultiAssayExperiment_1.17.14.tar.gz’
Installing package into '/mnt/STORE1/bighome/mramos/R/bioc-devel'
(as 'lib' is unspecified)
* installing *source* package 'MultiAssayExperiment' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (MultiAssayExperiment)
Adding 'MultiAssayExperiment_1.17.14_R_x86_64-pc-linux-gnu.tar.gz' to the cache
Note, I've also tried it with the release version and env variable:
> Sys.getenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS")
[1] "true"
> library(revdepcheck)
> revdep_check("MultiAssayExperiment", num_workers=34)
── INSTALL ────────────────────────────────────────────────────────────────────────────────────────────── 2 versions ──
Installing CRAN version of MultiAssayExperiment
Installing DEV version of MultiAssayExperiment
Error: Failed to install 'MultiAssayExperiment' from local:
(converted from warning) installation of package '/tmp/Rtmpnz4ZAD/file95eb25dbf45d/MultiAssayExperiment_1.17.15.tar.gz' had non-zero exit status
> packageVersion("remotes")
[1] '2.2.0'
❯ R CMD INSTALL -l revdep/library.noindex/MultiAssayExperiment/new/ /var/folders/59/0gkmw1yj2w7bf2dfc3jznv5w0000gn/T//RtmpACOYUo/file1500635ab0803/MultiAssayExperiment_1.17.14.tar.gz
* installing *source* package ‘MultiAssayExperiment’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(name) : there is no package called ‘HDF5Array’
Error: unable to load R code in package ‘MultiAssayExperiment’
Execution halted
ERROR: lazy loading failed for package ‘MultiAssayExperiment’
* removing ‘/private/tmp/MultiAssayExperiment/revdep/library.noindex/MultiAssayExperiment/new/MultiAssayExperiment’
Seems like your package does not install without HDF5Array, but it is not a hard dependency of your package.
In general, I suggest you run R CMD check
on your package first, to detect these issues, before running revdepcheck.
Hi Gábor, @gaborcsardi
Thanks for the info. I just realized that there is a quiet = TRUE
argument that I could've set to FALSE
to figure this issue out.
FWIW, I did do R CMD check
before using your tool and had no problems installing, building, or
checking because I have HDF5Array
in my lib.
Update: It works after solving the 'hard dep' issue. Thanks!
Hi Claus, @clauswilke
I would recommend that you use
revdepcheck::revdep_check(num_workers = 4, quiet = FALSE)
to debug the issue. Feel free to close the issue if it is not related to the package.
Best, Marcel
revdep_check()
fails to install the DEV version of the package for me. See transcript from R console below. Immediately after therevdep_check()
I install the package withdevtools::install(".")
and everything works fine. Any suggestions on how to debug this?