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

Asking for more information when an update fails #2086

Open
asitemade4u opened this issue Feb 1, 2025 · 4 comments
Open

Asking for more information when an update fails #2086

asitemade4u opened this issue Feb 1, 2025 · 4 comments

Comments

@asitemade4u
Copy link

Hi, and thank you for renv which solves most of our package conformation issues.
I would just like to ask the console output of renv::update() to be more explanatory when an issue occurs.

For example, here is the output of a defective update:

- Checking for updated packages ... Error in if (cores > 1L) parallel::mclapply(data, callback, mc.cores = cores) else lapply(data,  : 
  missing value where TRUE/FALSE needed
Traceback (most recent calls last):
7: renv::update()
6: updates <- renv_update_find(selected) at update.R#374
5: results <- enumerate(grouped, function(source, records) {
     case(
       source == "Bioconductor" ~ renv_update_find_repos(records),
       source == "Repository"   ~ renv_update_find_repos(records),
       source == "GitHub"       ~ renv_update_find_github(records),
       source == "Git"          ~ renv_update_find_git(records),
       source == "GitLab"       ~ renv_update_find_remote(records, "gitlab"),
       source == "Bitbucket"    ~ renv_update_find_remote(records, "bitbucket")
     )
   }) at update.R#180
4: .Call(
     "renv_ffi__enumerate",
     x,
     FUN.VALUE,
     environment(),
     PACKAGE = "renv"
   ) at ffi.R#6
3: case(
     source == "Bioconductor" ~ renv_update_find_repos(records),
     source == "Repository"   ~ renv_update_find_repos(records),
     source == "GitHub"       ~ renv_update_find_github(records),
     source == "Git"          ~ renv_update_find_git(records),
     source == "GitLab"       ~ renv_update_find_remote(records, "gitlab"),
     source == "Bitbucket"    ~ renv_update_find_remote(records, "bitbucket")
   ) at update.R#181
2: if (cond) return(expr) at utils.R#86
1: results <- renv_parallel_exec(records, function(record) {
     catch(renv_update_find_github_impl(record))
   }) at update.R#75

I have no idea what package is generating the issue. Do you?

Thanks,
Stephen

@kevinushey
Copy link
Collaborator

Can you please share the output of:

getOption("mc.cores")
renv::config$updates.parallel()

@asitemade4u
Copy link
Author

Here you go:

getOption("mc.cores")
    renv::config$updates.parallel()
NULL
[1] 2

@kevinushey
Copy link
Collaborator

Hmm... the error message here:

  • Checking for updated packages ... Error in if (cores > 1L) parallel::mclapply(data, callback, mc.cores = cores) else lapply(data, :
    missing value where TRUE/FALSE need

would imply that somehow an invalid value for mc.cores is getting set somewhere, but it's not clear where or why.

@asitemade4u
Copy link
Author

I am using a KVM VM with Ubuntu as guest.
The host is Alma Linux 9.

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