wjakethompson / measr

R package for the Bayesian estimation of diagnostic classification models using Stan
https://measr.info
GNU General Public License v3.0
10 stars 3 forks source link

[`roxylint` Demo] Testing new roxylint features #52

Open dgkf opened 1 month ago

dgkf commented 1 month ago

No need to accept these changes. Opening the PR primarily as a feature showcase to get your impressions on the new roxylint features (currently only in the 7-sentence-case branch). It's much more precise, but quite a bit slower. Roxygenizing takes ~8s now, which is just enough to feel inconvenient.

Some of the updates are pretty self explanatory - things like adding a period for some @params or @returns, making @seealso a proper sentence as recommended in the tidyverse guide, or wrapping "R" in code fences.

Less obvious fixes:

undecided features:

roxygen2::roxygenize() results:

And with those changes, we're down to a single lint:

ℹ [extract.R:15] @param should be 'Sentence case'.
Found improperly cased word(s): 'Sinharay', 'Sinharay', 'Templin', 'Bradshaw'

Which could be corrected with a citation, concept or \nolint{}