openpharma / staged.dependencies

R package to implement development stages for package development
https://openpharma.github.io/staged.dependencies/
MIT License
12 stars 3 forks source link

Handle case where existing external dependency is incorrect version #118

Closed nikolas-burkoff closed 2 years ago

nikolas-burkoff commented 2 years ago

If you already have an external dependency package x installed on version 1.0 and your internal dependency requires version 1.1 of x then install_deps will not upgrade x and the installation will fail. This can be fixed by upgrading x manually and then re-running the command (after clearing_cache until #116 is fixed)

nikolas-burkoff commented 2 years ago

@waddella remotes/issues/349 looks like this isn't possible/easy

nikolas-burkoff commented 2 years ago

@waddella says to handle this now we should allow upgrade = "all" option to be passed into remotes and renv will handle this going forward. Leave default to be never