Description Usage Arguments Details Value
The code argument is recorded without evaluation and it will be inserted
at the beginning of the fun. If it is a symbol, its value will be looked
starting in the callee frame. If where is not onentry it will be wrapped
in on.exit call. If where is onerror, the wrapped code will further
make the code to run only in the case the function failed with an error
condition.
1 | inject_code(code, fun, where = "onentry", wrap = FALSE)
|
code |
the code that should be inserted. |
fun |
the function into which the code should be inserted. |
where |
indicates at which point of the |
wrap |
indicates if it the given |
This function modifies the original function.
NULL invisibly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.