snippet_generate {precommit} | R Documentation |
Generate code snippets
Description
Utility function to generate code snippets:
Usage
snippet_generate(
snippet = "",
open = rstudioapi::isAvailable(),
root = here::here()
)
Arguments
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. |
Details
Currently supported:
additional-deps-roxygenize: Code to paste into
.pre-commit-config.yaml
for the additional dependencies required by the roxygenize hook.
[Package precommit version 0.4.3 Index]