Utility function to generate code snippets:
snippet_generate(
snippet = "",
open = rstudioapi::isAvailable(),
root = here::here()
)
Name of the snippet.
Whether or not to open the .pre-commit-config.yaml. The default
is TRUE
when working in RStudio. Otherwise, we recommend manually opening
the file.
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.