Skip to content

Commit

Permalink
Add spelling checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed May 12, 2024
1 parent 00b939b commit af13ccd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Imports:
Suggests:
covr,
dplyr,
spelling,
testthat (>= 3.0.0)
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
Expand Down
2 changes: 1 addition & 1 deletion R/usmapdata-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @description
#' It is usually difficult or inconvenient to create US maps that
#' include both Alaska and Hawaii in a convenient spot. All map
#' data frames produced by this package use the Albers Equal Area
#' data frames produced by this package use the US National Atlas Equal Area
#' projection.
#'
#' @section Map data frames:
Expand Down
11 changes: 11 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CRS
GeoPackage
Gert
Rudis
affine
choropleths
codecov
csv
pre
usmap
2 changes: 1 addition & 1 deletion man/usmapdata.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tests/spelling.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if(requireNamespace('spelling', quietly = TRUE))

Check notice

Code scanning / lintr

Place a space before left parenthesis, except in a function call. Note

Place a space before left parenthesis, except in a function call.

Check notice

Code scanning / lintr

Only use double-quotes. Note

Only use double-quotes.
spelling::spell_check_test(
vignettes = TRUE,
error = FALSE,
skip_on_cran = TRUE
)

0 comments on commit af13ccd

Please sign in to comment.