Better list and data.frame patches. In particular, additions and deletions from a list (or data.frame) will not make a full copy of the object.
A new exported function force_push
. It allows a tracked_environment
to revert
to its state as of any given commit, specified either by numerical index or by name.
The rollback
and rollback<-
functions support a silent
parameter that
controls whether or not to prune the commit history after rolling back.
This can be useful when one wishes to revert to an earlier state, while
retaining the ability to "roll forward" back to the future unless a
change is made.
The commits
function for fetching a named list of all commits of a
tracked_environment
.
tracked_environment
object. This is like an environment
,
but it supports commits in-memory,
allowing you to rollback your changes to
a previous state (or peek back in history by re-running a chain of patches).
For more details, see the vignette on tracked_environment
sRudimentary object diffing of lists. Several features are still to be desired, like diffing minor insertions, deletions, or name changes without incurring a prohibitive memory overhead, but the in general two arbitrary lists can be diffed.
Rudimentary diffing of atomic vectors. The same heuristic considerations apply as to lists: the features are adequate but more optimization is possible.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.