Skip to content

Remotes are not resolved if a package and its repo have different names #263

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

Closed
heavywatal opened this issue Dec 3, 2021 · 3 comments
Closed

Comments

@heavywatal
Copy link

I have igraphlite package hosted at github::heavywatal/rigraphlite, and a dependent package with the following DESCRIPTION:

Imports:
    igraphlite
Remotes:
    github::heavywatal/rigraphlite

pak::pkg_deps(".") cannot resolve this and emits an error:

Error: Cannot install packages:                                            
* local::.: Can't install dependency igraphlite
* igraphlite: Can't find package called igraphlite.

while remotes::install_deps() can.

igraphlite=github::heavywatal/rigraphlite format suggested in #2 seems to work with pak::pkg_deps("."), but it emits Error: Unknown remote type with remotes::install_deps().

How can I satisfy both r-lib/actions and devtools system?

@gaborcsardi
Copy link
Member

There is no way currently I am afraid, except for renaming your repository.

You can use pak::local_install_deps() instead of remotes::install_deps().

We could add support for the igraphlite=github::heavywatal/rigraphlite format in remotes, can you please open an issue there?

@heavywatal
Copy link
Author

Thank you for the quick reply. I have just opened an issue at r-lib/remotes.

@gaborcsardi
Copy link
Member

I'll close this issue, because we'll not change pkgdepends.

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

2 participants