-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchecklist.Rd
320 lines (292 loc) · 10.3 KB
/
checklist.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/checklist_class.R
\name{checklist}
\alias{checklist}
\title{The checklist R6 class}
\description{
A class which contains all checklist results.
}
\seealso{
Other class:
\code{\link{citation_meta}},
\code{\link{organisation}},
\code{\link{spelling}}
}
\concept{class}
\section{Super class}{
\code{\link[checklist:spelling]{checklist::spelling}} -> \code{checklist}
}
\section{Public fields}{
\if{html}{\out{<div class="r6-fields">}}
\describe{
\item{\code{package}}{A logical indicating whether the source code refers to a
package.}
}
\if{html}{\out{</div>}}
}
\section{Active bindings}{
\if{html}{\out{<div class="r6-active-bindings">}}
\describe{
\item{\code{get_checked}}{A vector with checked topics.}
\item{\code{get_path}}{The path to the package.}
\item{\code{get_required}}{A vector with the names of the required checks.}
\item{\code{get_spelling}}{Return the issues found by \code{check_spelling()}}
\item{\code{fail}}{A logical indicating if any required check fails.}
\item{\code{template}}{A list for a check list template.}
}
\if{html}{\out{</div>}}
}
\section{Methods}{
\subsection{Public methods}{
\itemize{
\item \href{#method-checklist-add_error}{\code{checklist$add_error()}}
\item \href{#method-checklist-add_linter}{\code{checklist$add_linter()}}
\item \href{#method-checklist-add_motivation}{\code{checklist$add_motivation()}}
\item \href{#method-checklist-add_notes}{\code{checklist$add_notes()}}
\item \href{#method-checklist-add_rcmdcheck}{\code{checklist$add_rcmdcheck()}}
\item \href{#method-checklist-add_spelling}{\code{checklist$add_spelling()}}
\item \href{#method-checklist-add_warnings}{\code{checklist$add_warnings()}}
\item \href{#method-checklist-allowed}{\code{checklist$allowed()}}
\item \href{#method-checklist-confirm_motivation}{\code{checklist$confirm_motivation()}}
\item \href{#method-checklist-new}{\code{checklist$new()}}
\item \href{#method-checklist-print}{\code{checklist$print()}}
\item \href{#method-checklist-set_required}{\code{checklist$set_required()}}
\item \href{#method-checklist-clone}{\code{checklist$clone()}}
}
}
\if{html}{\out{
<details open><summary>Inherited methods</summary>
<ul>
<li><span class="pkg-link" data-pkg="checklist" data-topic="spelling" data-id="set_default"><a href='../../checklist/html/spelling.html#method-spelling-set_default'><code>checklist::spelling$set_default()</code></a></span></li>
<li><span class="pkg-link" data-pkg="checklist" data-topic="spelling" data-id="set_exceptions"><a href='../../checklist/html/spelling.html#method-spelling-set_exceptions'><code>checklist::spelling$set_exceptions()</code></a></span></li>
<li><span class="pkg-link" data-pkg="checklist" data-topic="spelling" data-id="set_ignore"><a href='../../checklist/html/spelling.html#method-spelling-set_ignore'><code>checklist::spelling$set_ignore()</code></a></span></li>
<li><span class="pkg-link" data-pkg="checklist" data-topic="spelling" data-id="set_other"><a href='../../checklist/html/spelling.html#method-spelling-set_other'><code>checklist::spelling$set_other()</code></a></span></li>
</ul>
</details>
}}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_error"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_error}{}}}
\subsection{Method \code{add_error()}}{
Add errors
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_error(errors, item, keep = TRUE)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{errors}}{A vector with errors.}
\item{\code{item}}{The item on which to store the errors.}
\item{\code{keep}}{Keep old results}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_linter"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_linter}{}}}
\subsection{Method \code{add_linter()}}{
Add results from \code{lintr::lint_package()}
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_linter(linter)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{linter}}{A vector with linter errors.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_motivation"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_motivation}{}}}
\subsection{Method \code{add_motivation()}}{
Add motivation for allowed issues.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_motivation(which = c("warnings", "notes"))}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{which}}{Which kind of issue to add.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_notes"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_notes}{}}}
\subsection{Method \code{add_notes()}}{
Add notes
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_notes(notes, item)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{notes}}{A vector with notes.}
\item{\code{item}}{The item on which to store the notes.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_rcmdcheck"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_rcmdcheck}{}}}
\subsection{Method \code{add_rcmdcheck()}}{
Add results from \code{rcmdcheck::rcmdcheck}
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_rcmdcheck(errors, warnings, notes)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{errors}}{A vector with errors.}
\item{\code{warnings}}{A vector with warning messages.}
\item{\code{notes}}{A vector with notes.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_spelling"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_spelling}{}}}
\subsection{Method \code{add_spelling()}}{
Add results from \code{check_spelling()}
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_spelling(issues)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{issues}}{A \code{data.frame} with spell checking issues.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-add_warnings"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-add_warnings}{}}}
\subsection{Method \code{add_warnings()}}{
Add warnings
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$add_warnings(warnings, item)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{warnings}}{A vector with warnings.}
\item{\code{item}}{The item on which to store the warnings.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-allowed"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-allowed}{}}}
\subsection{Method \code{allowed()}}{
Add allowed warnings and notes
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$allowed(
warnings = vector(mode = "list", length = 0),
notes = vector(mode = "list", length = 0)
)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{warnings}}{A vector with allowed warning messages.
Defaults to an empty list.}
\item{\code{notes}}{A vector with allowed notes.
Defaults to an empty list.}
\item{\code{package}}{Does the check list refers to a package.
Defaults to \code{TRUE}.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-confirm_motivation"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-confirm_motivation}{}}}
\subsection{Method \code{confirm_motivation()}}{
Confirm the current motivation for allowed issues.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$confirm_motivation(which = c("warnings", "notes"))}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{which}}{Which kind of issue to confirm.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-new"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-new}{}}}
\subsection{Method \code{new()}}{
Initialize a new \code{checklist} object.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$new(x = ".", language, package = TRUE)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{x}}{The path to the root of the project.}
\item{\code{language}}{The default language for spell checking.}
\item{\code{package}}{Is this a package or a project?}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-print"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-print}{}}}
\subsection{Method \code{print()}}{
Print the \code{checklist} object.
Add \code{quiet = TRUE} to suppress printing.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$print(...)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{...}}{See description.}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-set_required"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-set_required}{}}}
\subsection{Method \code{set_required()}}{
set required checks
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$set_required(checks = character(0))}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{checks}}{a vector of required checks}
}
\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-checklist-clone"></a>}}
\if{latex}{\out{\hypertarget{method-checklist-clone}{}}}
\subsection{Method \code{clone()}}{
The objects of this class are cloneable with this method.
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{checklist$clone(deep = FALSE)}\if{html}{\out{</div>}}
}
\subsection{Arguments}{
\if{html}{\out{<div class="arguments">}}
\describe{
\item{\code{deep}}{Whether to make a deep clone.}
}
\if{html}{\out{</div>}}
}
}
}