upgrade just one package in packrat project upgraded all project

there's something i dont understand from Packrat.
i suppose a snapshot is a moment in time for all the library in the project. So when I need to upgrade a package I followed the procedure commented here:


But when I did it, packrat upgraded all the packages in the project......
I only needed to upgrade ONE package.

is that the correct behaviour?

packrat::snapshot() basically saves the state of the Packrat library to the lockfile. If installing that package also implied updating / installing any dependencies, or if those dependencies had changed at some other point in time, then those packages will be updated as well.

That behaviour broke things that was supposed to be preserved by the “library snapshot concept”

Is there any way of updating just one package?

Try update.packages(oldPkgs = "pkgname")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.