-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathsnippet_generate.Rd
35 lines (33 loc) · 1005 Bytes
/
snippet_generate.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setup.R
\name{snippet_generate}
\alias{snippet_generate}
\title{Generate code snippets}
\usage{
snippet_generate(
snippet = "additional-deps-roxygenize",
open = rstudioapi::isAvailable(),
root = here::here()
)
}
\arguments{
\item{snippet}{Name of the snippet.}
\item{open}{Whether or not to open the .pre-commit-config.yaml. The default
is \code{TRUE} when working in RStudio. Otherwise, we recommend manually opening
the file.}
\item{root}{The path to the root directory of your project.}
}
\description{
Utility function to generate code snippets:
}
\details{
Currently supported:
\itemize{
\item additional-deps-roxygenize: Code to paste into
\code{.pre-commit-config.yaml} for the additional dependencies required by
the roxygenize hook.
\item additional-deps-lintr: Code to paste into
\code{.pre-commit-config.yaml} for the additional dependencies required by
the lintr hook if you use \code{--load-package}.
}
}