Description Usage Arguments See Also Examples
Committing a change is equivalent to storing a patch object (see
objectdiff
). For the moment, any comment will produce
a single patch by "squishing" any changes made to the environment.
If you are iterating over an environment object many many times,
you should probably batch changes if it lives in a tracked environment.
Otherwise, for example, making 1,000,000 small modifications to
a data.frame before commiting could cause a long time to recompute
the "final patch".
1 2 3 4 |
env |
tracked_environment. |
value |
character. Commit message. May be |
1 2 3 4 | x <- tracked_environment()
x$foo <- 1
commit(x) <- 'First message'
x$foo <- 2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.