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

Cryptic error message for missing Bioc package. #379

Closed
grst opened this issue Jun 7, 2019 · 0 comments
Closed

Cryptic error message for missing Bioc package. #379

grst opened this issue Jun 7, 2019 · 0 comments

Comments

@grst
Copy link

grst commented Jun 7, 2019

I spent almost a day debugging the following error message
caused by the following line in my travis build of an R package:

> Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA)' 

Error in vapply(remote, function(x) remote_sha(x), character(1), USE.NAMES = FALSE) : 
  values must be type 'character',
 but FUN(X[[1]]) result is type 'logical'
Calls: <Anonymous> -> combine_deps -> remote_deps -> vapply
Execution halted

Minimal Example

create empty package:

Rscript -e "usethis::create_package("test.remotes")

Append the following lines to DESCRIPTION

Depends:
  BiocInstaller
Remotes:
  bioc::BiocInstaller

Run dev_package_deps:

Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA)'

Expected Behaviour

I figured out that the problem is caused by BiocInstaller having been removed from the latest Bioconductor release. After removing the dependency from my DESCRIPTION file everything works as expected.

It would be nice to have a more meaningful error message for a missing package.

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