ITADN

Renv 1.2.2 restore load test fail?

#2275Opendevinrkeane 创建于 2026-04-18
D
devinrkeanecommented
Hello again! Sorry to pile on, After upgrading to renv 1.2.2, renv::restore() again works fine on mac (binary installs only i belive) but fails in our gitlab ci running ubuntu - seems to be another load test issue: Reproduction - restored in rocker/r-ver:4.5.3 ``` ✔ later 1.4.8 [installed binary] ✔ lifecycle 1.0.5 [installed binary] #11 80.40 Error: error testing if 'lifecycle' can be loaded [error code 1] #11 80.40 /usr/local/lib/R/bin/R --vanilla -s -f '/tmp/RtmpPszgxI/renv-install-7204a7591.R' #11 80.40 ================================================================================ #11 80.40 #11 80.40 Warning in loadNamespace("lifecycle") : #11 80.40 package ‘lifecycle’ has no 'package.rds' in Meta/ #11 80.40 Warning: S3 method ‘print.lifecycle_warnings’ was declared in NAMESPACE but not found #11 80.40 Error in namespaceExport(ns, exports) : #11 80.40 undefined exports: badge, deprecate_soft, deprecate_stop, deprecate_warn, deprecated, expect_defunct, expect_deprecated, is_present, last_lifecycle_warnings, lifecycle_linter, lint_lifecycle, lint_tidyverse_lifecycle, pkg_lifecycle_statuses, signal_experimental, signal_stage, signal_superseded #11 80.40 Calls: loadNamespace -> namespaceExport #11 80.40 Execution halted #11 80.40 In addition: Warning message: #11 80.40 curl does not appear to be installed; downloads will fail. #11 80.40 See <https://rstudio.github.io/renv/articles/renv.html#downloads> for more information. #11 80.41 Traceback (most recent calls last): #11 80.41 10: renv::restore(repos = c(RSPM = "https://packagemanager.posit.co/cran/__linux__/noble/latest", #11 80.41 CRAN = "https://cloud.r-project.org")) #11 80.41 9: renv_restore_run_actions(project, diff, current, lockfile, rebuild, #11 80.41 strict, descriptions) #11 80.41 8: renv_graph_install(descriptions) #11 80.41 7: handle(pkg, list(success = success, output = output, elapsed = elapsed)) #11 80.41 6: renv_graph_install_finalize(entry$record, entry$prepared, installdir, #11 80.41 project, linkable) #11 80.41 5: tryCatch(renv_install_test(package), error = function(err) { #11 80.41 unlink(installpath, recursive = TRUE) #11 80.41 stop(err) #11 80.41 }) #11 80.41 4: tryCatchList(expr, classes, parentenv, handlers) #11 80.41 3: tryCatchOne(expr, names, parentenv, handlers[[1L]]) #11 80.41 2: value[[3L]](cond) #11 80.41 1: stop(err) ``` You can reproduce with the attached. [repro-renv-bug 2.zip](https://github.com/user-attachments/files/26860047/repro-renv-bug.2.zip) `run docker build --no-cache -t renv-repro`
2 条评论