Skip to content

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.

package.filename <- paste(package, "_", version, ".tar.gz",
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