pmx_copy | R Documentation |
Creates a deep copy of the controller
pmx_copy(ctr, keep_globals = FALSE, ...)
ctr |
|
keep_globals |
|
... |
extra parameters passed to |
The controller is an 'R6' object, it behaves like a reference object.
Some functions ( methods) can have a side effect on the controller and modify it internally.
Technically speaking we talk about chaining not piping here. However ,
using pmx_copy
user can work on a copy of the controller.
By default the copy does not keep global parameters set using pmx_settings.
an object of pmxClass
ctr <- theophylline()
cctr <- ctr %>% pmx_copy()
## Any change in the ctr has no side effect in the ctr and vice versa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.