-
Notifications
You must be signed in to change notification settings - Fork 153
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
Support for named remote dependencies #794
Comments
Can you show an example? E.g. a package in a GitHub repository that does not work with with remotes? |
@gaborcsardi , I have added a few example packages here: https://github.com/msteijaert/r_dependency_examples
I have retried with full paths, but the error persists. If I remove the package names from the Remotes field, |
Noting that I have also run into this incompatibility between the I note that
but not if they are specified in the form:
I have modified @msteijaert's example The non-working example throws a similar error to that thrown with a named > remotes::install_local('.')
Error: Failed to install 'package5' from local:
Unknown remote type: shinyproxy=github
object 'shinyproxy=github_remote' of mode 'function' was not found |
Out of curiosity, why are you using remotes? Why not use pak instead? |
I like to be able to use the same package with both pak and remotes. E.g., that allows me to switch between pak and remotes depending on the use-case (e.g. local development, CI/CD, dockerized deployment of Shiny apps). The two main advantages of remotes are that it is lightweight and that it allows installing specific versions for certain packages. |
pak has no dependencies and we provide self-contained pak binaries that even bundle the SSL certificates. pak also supports installing specific versions of packages. |
Thanks for this information. I could not find it in the pak documentation, but indeed it turns out that one can use |
See https://pak.r-lib.org/reference/pak_package_sources.html#cran-packages-cran- |
The pak package supports packages names in the Remotes field.
In fact, for local dependencies that is even required, as https://pak.r-lib.org/reference/pak_package_sources.html mentions:
In an example package, I could confirm that this is compatible with e.g.,
pak::pkg_sysreqs()
andpak::local_deps()
. However, when I use the same package (and DESCRIPTION file) withremotes::install_local()
, I get an error:Is it possible to add support for this explicit name to the remotes package?
The text was updated successfully, but these errors were encountered: