From e5bb84ed48188b569023152ae039147247d21700 Mon Sep 17 00:00:00 2001 From: jamesaazam Date: Fri, 21 Jul 2023 11:27:03 +0100 Subject: [PATCH 1/3] Added spellchecking --- DESCRIPTION | 2 ++ inst/WORDLIST | 30 ++++++++++++++++++++++++++++++ tests/spelling.R | 3 +++ 3 files changed, 35 insertions(+) create mode 100644 inst/WORDLIST create mode 100644 tests/spelling.R diff --git a/DESCRIPTION b/DESCRIPTION index 0f9ed6e6..60abadc7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -30,6 +30,7 @@ Suggests: knitr, lubridate, rmarkdown, + spelling, testthat, truncdist VignetteBuilder: @@ -40,3 +41,4 @@ Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 +Language: en-GB diff --git a/inst/WORDLIST b/inst/WORDLIST new file mode 100644 index 00000000..cc46fc3a --- /dev/null +++ b/inst/WORDLIST @@ -0,0 +1,30 @@ +Borel +CMD +COVID +Marivate +ORCID +Poisson +R's +README's +Vukosi +Zhian +codecov +dfrac +doi +ecdf +gborel +immunes +infectees +infectors +json +linelist +ln +nbinom +nolint +pois +poisson +quickstart +sim +superspreading +susceptibles +var diff --git a/tests/spelling.R b/tests/spelling.R new file mode 100644 index 00000000..6713838f --- /dev/null +++ b/tests/spelling.R @@ -0,0 +1,3 @@ +if(requireNamespace('spelling', quietly = TRUE)) + spelling::spell_check_test(vignettes = TRUE, error = FALSE, + skip_on_cran = TRUE) From 283817afc45805dc1a07381d50698cdafdc9ccaf Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 21 Jul 2023 10:29:28 +0000 Subject: [PATCH 2/3] Update CITATION.cff --- CITATION.cff | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CITATION.cff b/CITATION.cff index 50d9928f..9c457910 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -210,6 +210,21 @@ references: email: rich@posit.co orcid: https://orcid.org/0000-0003-3925-190X year: '2023' +- type: software + title: spelling + abstract: 'spelling: Tools for Spell Checking in R' + notes: Suggests + url: https://docs.ropensci.org/spelling/ + repository: https://CRAN.R-project.org/package=spelling + authors: + - family-names: Ooms + given-names: Jeroen + email: jeroen@berkeley.edu + orcid: https://orcid.org/0000-0002-4035-0289 + - family-names: Hester + given-names: Jim + email: james.hester@rstudio.com + year: '2023' - type: software title: testthat abstract: 'testthat: Unit Testing for R' From 6ff790d6bceb8deeb81a8011e6d09238e20de428 Mon Sep 17 00:00:00 2001 From: jamesaazam Date: Fri, 21 Jul 2023 11:42:57 +0100 Subject: [PATCH 3/3] Linting --- tests/spelling.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spelling.R b/tests/spelling.R index 6713838f..33ef2c73 100644 --- a/tests/spelling.R +++ b/tests/spelling.R @@ -1,3 +1,3 @@ -if(requireNamespace('spelling', quietly = TRUE)) +if (requireNamespace("spelling", quietly = TRUE)) spelling::spell_check_test(vignettes = TRUE, error = FALSE, skip_on_cran = TRUE)