-
Notifications
You must be signed in to change notification settings - Fork 154
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
Feature Request: Add support to install packages from r-universe #618
Comments
Can I also suggest: remotes::install_universe("maelle") To install all packages in a universe. |
Are there any developments on this feature? |
It is unlikely that this would be implemented, because it is not very hard to set the |
One reason setting And even though it's "not very hard to set remotes::install_cran("goodpress", repos = "https://maelle.r-universe.dev/") because the |
This should work well usually: remotes::install_cran(
"goodpress",
repos = c("https://maelle.r-universe.dev/", getOption("repos"))
) Maybe in pak we could have a way to specify that a package is in a specific repository, but AFAICT that is often not enough for R-universe repos, because dependencies would need to be installed from R-universe as well. This is why it is better to set the repo. |
Sorry if this is a stupid question, but how would I go about doing this for a transitive Suppose I want to write a package
before they I'd like to make the additional repository explicit in package A's DESCRIPTION (maybe using |
I am not sure, but I think you are supposed to add a IDK what is a good solution to namespacing and scattered R-universe repos in general, though. |
Maybe this can/should be done with |
If you add a GitHub entry in the "Remotes" field, you lose the benefit of r-universe. |
The r-universe/help discussions here suggest @gaborcsardi's answer is the current approach, you either include the package you depend on into your own r-universe, or that will happen automatically if one of your r-universe packages references any github url as a remote. I can still see it getting messy though if there is a large r-universe transitive dependency network, all of which would have to be imported into your own repository, and for a frequently depended on r-universe package, multiple universes will have to rebuild the package each and every time it is updated. |
I am really just starting package development in R, so forgive me if the question does not fit here, but this seems to be the most related resource I found. My problem is that the package I am developing depends on another package hosted on r-universe.dev and I am unsure how to add this in the DESCRIPTION file? I tried with
But this does not seem to work.
it works without error if the remote package is already installed. When I trying to install it from GitHub with
Any thoughts? |
You cannot. You'll have to ask your users to configure their repositories to include the R-universe repos that you need. |
thanks for the super quick response. Just for my understanding, is there any resource about why this is not possible? |
Not really. It is usually hard to prove that something does not exist. Basically it comes down to this:
(For completeness, there is a |
Integration with https://r-universe.dev/ would be excellent. I'd love to be able to do something like:
A similar syntax for
Remotes
would also be helpful:The text was updated successfully, but these errors were encountered: