r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
330 stars 152 forks source link

Suggestion: install_github() should warn the user when a package doesn't match the version required by DESCRIPTION #736

Closed daattali closed 1 year ago

daattali commented 1 year ago

Related to #524

When installing a package with `install_github(), I get presented with all the packages that can potentially be updated. However, I noticed that if there's a package that requires a specific version in the DESCRIPTION and my existing version is lower, this package doesn't get installed automatically and {remotes} doesn't tell me that this package should be updated.

I would think that any package in DESCRIPTION that isn't already installed should be installed (and this does indeed happen), but similarly every package with a version requirement should be upgraded if the version isn't met.

gaborcsardi commented 1 year ago

We are not adding new features to remotes, as we are focusing on pak instead, which already has a much better display of what is going to be installed and from where. It also lists all packages that are going to be installed, before installing them.