track_copy | R Documentation |
The title is somewhat misleading: rather than checking if an object is modified, this really checks to see if a name points to the same object.
track_copy(var, env = parent.frame(), quiet = FALSE)
var |
variable name (unquoted) |
env |
environment name in which to track changes |
quiet |
if |
a zero-arg function, that when called returns a boolean indicating if the object has changed since the last time this function was called
a <- 1:5 track_a <- track_copy(a) track_a() a[3] <- 3L track_a() a[3] <- 3 track_a() rm(a) track_a()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.