Skip to content

Commit 282862b

Browse files
committed
update readme for #43
1 parent 70324f1 commit 282862b

File tree

4 files changed

+45
-29
lines changed

4 files changed

+45
-29
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: srr
22
Title: 'rOpenSci' Review Roclets
3-
Version: 0.1.3.011
3+
Version: 0.1.3.012
44
Authors@R:
55
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

README.Rmd

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ these symbols, and roclets define what is done with different kinds of tags.
5959
The [`roxygen2`](https://roxygen2.r-lib.org) package includes roclets to
6060
process a number of tags; the `srr` package implements custom roclets to
6161
process several additional tags for use with [rOpenSci](https://ropensci.org)'s
62-
software review systems.
62+
software review systems, and to process tags in locations other than just the
63+
`R/` directory.
6364

6465
At present, the package only contains roclets and associated functions to help
6566
those developing and reviewing packages submitted to rOpenSci's system for
@@ -77,15 +78,16 @@ The easiest way to install this package is via the associated
7778
shown there, simply enable the universe with
7879

7980
```{r options, eval = FALSE}
80-
options(repos = c(
81+
options (repos = c (
8182
ropenscireviewtools = "https://ropensci-review-tools.r-universe.dev",
82-
CRAN = "https://cloud.r-project.org"))
83+
CRAN = "https://cloud.r-project.org"
84+
))
8385
```
8486

8587
And then install the usual way with,
8688

8789
```{r install, eval = FALSE}
88-
install.packages("srr")
90+
install.packages ("srr")
8991
```
9092

9193
Alternatively, the package can be installed by running one of the following
@@ -156,7 +158,7 @@ describes how to link your package with `srr` in order to use these roclets.
156158
3. Enable your package to use the `srr_stats` roclets by modifying the
157159
package's `DESCRIPTION` file so that the `Roxygen` line looks like this:
158160
```{r roxygen, eval = FALSE}
159-
Roxygen: list(markdown = TRUE, roclets = c ("namespace", "rd", "srr::srr_stats_roclet"))
161+
Roxygen:list (markdown = TRUE, roclets = c ("namespace", "rd", "srr::srr_stats_roclet"))
160162
```
161163
That will load the ["roclet"](https://roxygen2.r-lib.org) used by this
162164
package to process the documentation of statistical standards within your
@@ -170,8 +172,9 @@ describes how to link your package with `srr` in order to use these roclets.
170172
`R/srr_stats_standards.R`, the first few lines of which will look like this:
171173
```{r srr_stats_roxygen, echo = FALSE, message = FALSE}
172174
f <- "./R/srr-stats-standards.R"
173-
if (!file.exists (f))
175+
if (!file.exists (f)) {
174176
srr_stats_roxygen ()
177+
}
175178
rso <- readLines (f)
176179
head (rso)
177180
```
@@ -215,7 +218,14 @@ describes how to link your package with `srr` in order to use these roclets.
215218
or the equivalent
216219
[`roxygen2::roxygenise()`](https://roxygen2.r-lib.org/reference/roxygenize.html),
217220
the roclet will scan your package's documentation for the state of
218-
standards, and will generate a summary of the result on your screen.
221+
standards, and will generate a summary of the result on your screen. Note,
222+
however, that the `roxygen2` package [only scans files in the R
223+
directory](https://github.com/r-lib/roxygen2/blob/9652d15221109917d46768e836eaf55e33c21633/R/package_files.R#L1-L10),
224+
and so this screen output will only summarise standards documented there.
225+
Standards documented in other locations such as test files or vignettes
226+
will be recognised and processed by the `srr` package, even through they
227+
will not be recognised by the `document()/roxygenise()` functions, and so
228+
will not appear in their output.
219229
220230
To help developers understand how to use these roclets, this package includes a
221231
function,

README.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Standards](https://stats-devguide.ropensci.org/standards.html). Before
2020
proceeding, the answer to an important question: **[What is a
2121
“roclet”](https://github.com/r-lib/roxygen2/issues/1086)?**
2222

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.
2727

2828
## Why then?
2929

@@ -52,7 +52,8 @@ with different kinds of tags. The
5252
[`roxygen2`](https://roxygen2.r-lib.org) package includes roclets to
5353
process a number of tags; the `srr` package implements custom roclets to
5454
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.
5657

5758
At present, the package only contains roclets and associated functions
5859
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
7071
As shown there, simply enable the universe with
7172

7273
``` r
73-
options(repos = c(
74+
options (repos = c (
7475
ropenscireviewtools = "https://ropensci-review-tools.r-universe.dev",
75-
CRAN = "https://cloud.r-project.org"))
76+
CRAN = "https://cloud.r-project.org"
77+
))
7678
```
7779

7880
And then install the usual way with,
7981

8082
``` r
81-
install.packages("srr")
83+
install.packages ("srr")
8284
```
8385

8486
Alternatively, the package can be installed by running one of the
@@ -151,6 +153,7 @@ roclets.
151153
## [6] "Spatial"
152154
## [7] "Time Series"
153155
## [8] "Dimensionality Reduction, Clustering, and Unsupervised Learning"
156+
## [9] "Probability Distributions"
154157

155158
That function also returns links to the full descriptions of each
156159
category in the [main project
@@ -163,7 +166,7 @@ roclets.
163166
this:
164167

165168
``` 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"))
167170
```
168171

169172
That will load the [“roclet”](https://roxygen2.r-lib.org) used by
@@ -233,6 +236,15 @@ roclets.
233236
[`roxygen2::roxygenise()`](https://roxygen2.r-lib.org/reference/roxygenize.html),
234237
the roclet will scan your packages documentation for the state of
235238
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.
236248

237249
To help developers understand how to use these roclets, this package
238250
includes a function,
@@ -293,17 +305,19 @@ project, you agree to abide by its terms.
293305

294306
## Contributors
295307

296-
297308
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
298309
<!-- prettier-ignore-start -->
299310
<!-- markdownlint-disable -->
300311

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!
302317

303318
### Code
304319

305320
<table>
306-
307321
<tr>
308322
<td align="center">
309323
<a href="https://github.com/mpadge">
@@ -324,14 +338,11 @@ All contributions to this project are gratefully acknowledged using the [`allcon
324338
<a href="https://github.com/ropensci-review-tools/srr/commits?author=maelle">maelle</a>
325339
</td>
326340
</tr>
327-
328341
</table>
329342

330-
331343
### Issue Authors
332344

333345
<table>
334-
335346
<tr>
336347
<td align="center">
337348
<a href="https://github.com/santikka">
@@ -346,14 +357,11 @@ All contributions to this project are gratefully acknowledged using the [`allcon
346357
<a href="https://github.com/ropensci-review-tools/srr/issues?q=is%3Aissue+author%3Aschneiderpy">schneiderpy</a>
347358
</td>
348359
</tr>
349-
350360
</table>
351361

352-
353362
### Issue Contributors
354363

355364
<table>
356-
357365
<tr>
358366
<td align="center">
359367
<a href="https://github.com/jeroen">
@@ -362,9 +370,7 @@ All contributions to this project are gratefully acknowledged using the [`allcon
362370
<a href="https://github.com/ropensci-review-tools/srr/issues?q=is%3Aissue+commenter%3Ajeroen">jeroen</a>
363371
</td>
364372
</tr>
365-
366373
</table>
367-
368374
<!-- markdownlint-enable -->
369375
<!-- prettier-ignore-end -->
370376
<!-- ALL-CONTRIBUTORS-LIST:END -->

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/srr",
99
"issueTracker": "https://github.com/ropensci-review-tools/srr/issues",
1010
"license": "https://spdx.org/licenses/MIT",
11-
"version": "0.1.3.011",
11+
"version": "0.1.3.012",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)