| local_mocked_r6_class | R Documentation |
This function allows you to temporarily override an R6 class definition.
It works by creating a subclass then using local_mocked_bindings() to
temporarily replace the original definition. This means that it will not
affect subclasses of the original class; please file an issue if you need
this.
Learn more about mocking in vignette("mocking").
local_mocked_r6_class(
class,
public = list(),
private = list(),
frame = caller_env()
)
class |
An R6 class definition. |
public, private |
A named list of public and private methods/data. |
frame |
Calling frame which determines the scope of the mock. Only needed when wrapping in another local helper. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.