@@ -20,10 +20,10 @@ Standards](https://stats-devguide.ropensci.org/standards.html). Before
20
20
proceeding, the answer to an important question: ** [ What is a
21
21
“roclet”] ( https://github.com/r-lib/roxygen2/issues/1086 ) ?**
22
22
23
- - A roclet is an object used by the
24
- [ ` roxygen2 ` ] ( https://roxygen2.r-lib.org ) package to convert
25
- [ ` roxygen2 ` ] ( https://roxygen2.r-lib.org ) -style documentation lines
26
- into some desired form of output.
23
+ - A roclet is an object used by the
24
+ [ ` roxygen2 ` ] ( https://roxygen2.r-lib.org ) package to convert
25
+ [ ` roxygen2 ` ] ( https://roxygen2.r-lib.org ) -style documentation lines
26
+ into some desired form of output.
27
27
28
28
## Why then?
29
29
@@ -52,7 +52,8 @@ with different kinds of tags. The
52
52
[ ` roxygen2 ` ] ( https://roxygen2.r-lib.org ) package includes roclets to
53
53
process a number of tags; the ` srr ` package implements custom roclets to
54
54
process several additional tags for use with
55
- [ rOpenSci] ( https://ropensci.org ) ’s software review systems.
55
+ [ rOpenSci] ( https://ropensci.org ) ’s software review systems, and to
56
+ process tags in locations other than just the ` R/ ` directory.
56
57
57
58
At present, the package only contains roclets and associated functions
58
59
to help those developing and reviewing packages submitted to rOpenSci’s
@@ -70,15 +71,16 @@ The easiest way to install this package is via the associated
70
71
As shown there, simply enable the universe with
71
72
72
73
``` r
73
- options(repos = c(
74
+ options (repos = c (
74
75
ropenscireviewtools = " https://ropensci-review-tools.r-universe.dev" ,
75
- CRAN = " https://cloud.r-project.org" ))
76
+ CRAN = " https://cloud.r-project.org"
77
+ ))
76
78
```
77
79
78
80
And then install the usual way with,
79
81
80
82
``` r
81
- install.packages(" srr" )
83
+ install.packages (" srr" )
82
84
```
83
85
84
86
Alternatively, the package can be installed by running one of the
@@ -151,6 +153,7 @@ roclets.
151
153
# # [6] "Spatial"
152
154
# # [7] "Time Series"
153
155
# # [8] "Dimensionality Reduction, Clustering, and Unsupervised Learning"
156
+ # # [9] "Probability Distributions"
154
157
155
158
That function also returns links to the full descriptions of each
156
159
category in the [main project
@@ -163,7 +166,7 @@ roclets.
163
166
this :
164
167
165
168
`` ` r
166
- Roxygen : list (markdown = TRUE , roclets = c (" namespace" , " rd" , " srr::srr_stats_roclet" ))
169
+ Roxygen : list (markdown = TRUE , roclets = c (" namespace" , " rd" , " srr::srr_stats_roclet" ))
167
170
```
168
171
169
172
That will load the [“roclet ”](https : // roxygen2.r - lib.org ) used by
@@ -233,6 +236,15 @@ roclets.
233
236
[`roxygen2::roxygenise()` ](https : // roxygen2.r - lib.org / reference / roxygenize.html ),
234
237
the roclet will scan your package ’s documentation for the state of
235
238
standards , and will generate a summary of the result on your screen.
239
+ Note , however , that the `roxygen2` package [only scans files in the
240
+ R
241
+ directory ](https : // github.com / r - lib / roxygen2 / blob / 9652d15221109917d46768e836eaf55e33c21633 / R / package_files.R # L1-L10),
242
+ and so this screen output will only summarise standards documented
243
+ there. Standards documented in other locations such as test files or
244
+ vignettes will be recognised and processed by the `srr` package ,
245
+ even through they will not be recognised by the
246
+ `document()/roxygenise()` functions , and so will not appear in their
247
+ output.
236
248
237
249
To help developers understand how to use these roclets , this package
238
250
includes a function ,
@@ -293,17 +305,19 @@ project, you agree to abide by its terms.
293
305
294
306
## Contributors
295
307
296
-
297
308
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
298
309
<!-- prettier-ignore-start -->
299
310
<!-- markdownlint-disable -->
300
311
301
- All contributions to this project are gratefully acknowledged using the [ ` allcontributors ` package] ( https://github.com/ropenscilabs/allcontributors ) following the [ all-contributors] ( https://allcontributors.org ) specification. Contributions of any kind are welcome!
312
+ All contributions to this project are gratefully acknowledged using the
313
+ [ ` allcontributors `
314
+ package] ( https://github.com/ropenscilabs/allcontributors ) following the
315
+ [ all-contributors] ( https://allcontributors.org ) specification.
316
+ Contributions of any kind are welcome!
302
317
303
318
### Code
304
319
305
320
<table >
306
-
307
321
<tr >
308
322
<td align =" center " >
309
323
<a href =" https://github.com/mpadge " >
@@ -324,14 +338,11 @@ All contributions to this project are gratefully acknowledged using the [`allcon
324
338
<a href =" https://github.com/ropensci-review-tools/srr/commits?author=maelle " >maelle</a >
325
339
</td >
326
340
</tr >
327
-
328
341
</table >
329
342
330
-
331
343
### Issue Authors
332
344
333
345
<table >
334
-
335
346
<tr >
336
347
<td align =" center " >
337
348
<a href =" https://github.com/santikka " >
@@ -346,14 +357,11 @@ All contributions to this project are gratefully acknowledged using the [`allcon
346
357
<a href =" https://github.com/ropensci-review-tools/srr/issues?q=is%3Aissue+author%3Aschneiderpy " >schneiderpy</a >
347
358
</td >
348
359
</tr >
349
-
350
360
</table >
351
361
352
-
353
362
### Issue Contributors
354
363
355
364
<table >
356
-
357
365
<tr >
358
366
<td align =" center " >
359
367
<a href =" https://github.com/jeroen " >
@@ -362,9 +370,7 @@ All contributions to this project are gratefully acknowledged using the [`allcon
362
370
<a href =" https://github.com/ropensci-review-tools/srr/issues?q=is%3Aissue+commenter%3Ajeroen " >jeroen</a >
363
371
</td >
364
372
</tr >
365
-
366
373
</table >
367
-
368
374
<!-- markdownlint-enable -->
369
375
<!-- prettier-ignore-end -->
370
376
<!-- ALL-CONTRIBUTORS-LIST:END -->
0 commit comments