Applies the most recent snapshot to the project's private library.
restore( project = NULL, overwrite.dirty = FALSE, prompt = interactive(), dry.run = FALSE, restart = !dry.run )
The project directory. When in packrat mode, if this is
A dirty package is one that has been changed since the
last snapshot or restore. Packrat will leave these alone by default. If you
want to guarantee that
restore works by adding, removing, and changing packages so that the
set of installed packages and their versions matches the snapshot exactly.
There are three common use cases for
restore after copying a project to a new
machine to populate the library on that machine.
restore to apply library changes made by a
collaborator to your own library. (In general, you want to run
whenever you pick up a change to
restore to undo accidental changes made
to the library since the last snapshot.
restore cannot make changes to packages that are currently loaded. If
changes are necessary to currently loaded packages, you will need to restart
R to apply the changes (
restore will let you know when this is
necessary). It is recommended that you do this as soon as possible, because
any library changes made between running
restore and restarting R will
restore can be destructive; it will remove packages that were not in
the snapshot, and it will replace newer packages with older versions if
that's what the snapshot indicates.
restore will warn you before
attempting to remove or downgrade a package (if
TRUE), but will always perform upgrades and new installations without
restore works only on the private package library created by packrat;
if you have other libraries on your path, they will be unaffected.
restart parameter will only result in a restart of R when the
R environment packrat is running within makes available a restart function
snapshot, the command that creates the snapshots applied with
status to view the differences between the most recent snapshot
and the library.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.