snippet_generate | R Documentation |
Utility function to generate code snippets:
snippet_generate(
snippet = "",
open = rstudioapi::isAvailable(),
root = here::here()
)
snippet |
Name of the snippet. |
open |
Whether or not to open the .pre-commit-config.yaml. The default
is |
root |
The path to the root directory of your project. |
Currently supported:
additional-deps-roxygenize: Code to paste into
.pre-commit-config.yaml
for the additional dependencies required by
the roxygenize hook.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.