Skip to content
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

Relax package path assumptions in download_version_url #441

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

martinstuder
Copy link

Relaxes package path assumptions for archived packages (src/contrib/Archive) in download_version_url by matching on the package filename only rather than the complete (relative) path. Closes #440.

sep = "")
if (!(package.path %in% row.names(info))) {
idx <- endsWith(row.names(info), package.filename)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about matching with basename() instead?

@jimhester
Copy link
Member

Thank you for the pull request! We recently merged a fairly substantial change to how install_version() works internally.

If you are still interested in fixing this issue could you look into how this PR would work with the new code?

Also please add at least a few tests to test-install-version.R so we can ensure the code works as intended and we don't get future regressions.

Thanks!

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

Successfully merging this pull request may close these issues.

Relax package path assumptions in remotes:::download_version_url
2 participants