-
Notifications
You must be signed in to change notification settings - Fork 22
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
BiocManager::valid() not working within reprex::reprex() #4
Comments
Hi Pete, @PeteHaitch options("repos"); BiocManager::valid()
#> $repos
#> [1] "https://cloud.r-project.org" "https://cloud.r-project.org"
#> Error in repos[["CRAN"]]: subscript out of bounds
#> $repos
#> [1] "https://cloud.r-project.org" "https://cloud.r-project.org" Created on 2018-07-06 by the reprex package (v0.2.0). |
Are you saying you think it's a reprex issue rather than a BiocManager issue? If so, I'll report it there. |
Hi Pete, @PeteHaitch Regards, |
To peel the onion a bit more, I wonder if this is a problem with callr? If I follow the above discussion, it is a problem that the return value for reprex "just" prepares a I'm not sure why the name stripping happens but I can reproduce it with callr alone. FYI callr adds a CRAN repo (
Note: Technically, |
Hi @gaborcsardi do you have any insight? |
Maybe the names on https://github.com/cran/callr/blob/d591dfee954a3a87cdf690c5e4953c4782ec17cb/R/check.R#L27 Small demo: (x <- c(getOption("repos"), c(CRAN = "whatever")))
#> CRAN CRAN
#> "https://cran.rstudio.org" "whatever"
as.character(x)
#> [1] "https://cran.rstudio.org" "whatever" |
Indeed! |
Yes, Jenny @jennybc that's right. |
This is now fixed in callr FWIW. Thanks for pointing it out. |
Thanks Jenny! |
Can confirm this has fixed the original issue. Thanks all! |
Running from a new R session:
Running as
reprex::reprex(x = BiocManager::valid())
:Created on 2018-06-13 by the reprex package (v0.2.0).
Any ideas? The combo of
reprex::reprex()
andBiocManager::valid()
will be valuable when asking for minimal bug reports.The text was updated successfully, but these errors were encountered: