r-lib / remotes

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

package_deps ignores "recommended" packages #569

Closed dselivanov closed 3 years ago

dselivanov commented 3 years ago

Is there a strong reason to not check "recommended" packages for updates?

I have an issue with that - my pkg depends on Matrix pkg which is recommended. However it depends on recent Matrix >= 1.3 while most recent R 4.0.3 contains Matrix 1.2.*.

jimhester commented 3 years ago

In practice it seems R users rarely if ever update recommended packages manually, instead relying on whatever version of recommended package is installed when they install R. A workaround you could use would be to increase the R version requirement of your package.

I think one argument against checking the recommended packages in remotes is often they are installed in the system package library which users may not have access to.