make_copies | R Documentation |
Duplicate multiple ojects in an environment based on a grep pattern match. This allows modification of one version of the objects without losing the previous versions. Useful for testing modifications to objects generated by time-consuming code. This is a simple wrapper for makeCopy.
make_copies(var_pattern, append=".old", ask=TRUE, envir=.GlobalEnv)
var_pattern |
character string, the regex pattern to match object names. Passed to |
append |
character string, the text to be appended to the objects' names when making the copies. Defaults to ".old". |
ask |
logical, whether to prompt the user before copying objects. Defaults to TRUE. |
envir |
the name of the environment in which to make the changes. Defaults to the global environment, |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.