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

devtools::install and install_github do not pass on Additional_repositories on when installing deps? #1243

Closed
cboettig opened this Issue Jun 28, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@cboettig

cboettig commented Jun 28, 2016

If I have package A that depends on package B, which depends on package C; and B & C are in the listed Additional_repositories drat repository, it seems devtools::install() fails to find package C when trying to install B (and thus fails to install A & B). A simple install.packages("A", repo="my.drat.repo") works fine.

For a concrete example:

install.packages("RNeXML", dep=TRUE, repos=c("https://cran.rstudio.com", "http://packages.ropensci.org"))

Works just fine. But

devtools::install_github("ropensci/RNeXML", deps=TRUE)

fails by failing to install the suggested dependency rrdf because rrdflibs is "not available", even though both are on the drat repo.

@eddelbuettel

This comment has been minimized.

eddelbuettel commented Sep 12, 2016

Also, the discussion in the remotes vignette fails to mention drat use. Given that CRAN supports it, and other packages use it, you may want to mention this (as a non-devtools alternative).

@jimhester

This comment has been minimized.

Member

jimhester commented Sep 12, 2016

@cboettig I just opened a PR that should address your issue (as long as you specify your repos appropriately)

@eddelbuettel That vignette was written to explain the remotes feature of devtools, not as a general review of available CRAN alternatives. However if you would like drat to be mentioned in it I am sure we would be happy to merge a pull request with the change.

@cboettig

This comment has been minimized.

cboettig commented Sep 12, 2016

Thanks @jimhester , very nice!

@eddelbuettel

This comment has been minimized.

eddelbuettel commented Sep 12, 2016

@jimhester could do if you think it fits -- I was mostly coming from the 'well remotes is not the only way to do this' angle of actually mentioning the fact that CRAN now formally supports Additional_repositories. The remotes documentation, focused as it is, seems to imply it was the only game in town.

@lock

This comment has been minimized.

lock bot commented Sep 18, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.