activate | R Documentation |
This sets environment variables, R options and library paths to work interactively on the touchstone_script.
activate(
head_branch = gert::git_branch(),
base_branch = getOption("touchstone.default_base_branch", "main"),
n = 1,
env = parent.frame()
)
deactivate(env = parent.frame())
head_branch |
Git branch to be used as the |
base_branch |
Git branch for the |
n |
Number of times benchmarks should be run for each |
env |
In which environment the temporary changes should be made. For use within functions. |
deactivate()
: Restore the original environment state.
## Not run:
activate()
# You can now test parts of your touchstone script, e.g. touchstone/script.R
deactivate()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.