Skip to content

Commit

Permalink
start spell checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dramanica committed Jan 9, 2024
1 parent 325f4d0 commit 76cbe7d
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 8 deletions.
9 changes: 5 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ Imports:
sf,
magrittr
Suggests:
testthat,
knitr,
rmarkdown,
rnaturalearthdata
testthat,
knitr,
rmarkdown,
rnaturalearthdata,
spelling
RoxygenNote: 7.2.3
Collate:
'classes.R'
Expand Down
4 changes: 2 additions & 2 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#' created when loading \code{geoGraph}. Users should not have to interact
#' directly with objects in this environment.\cr
#'
#' The resulting plotting behaviour is that when plotting a \code{gGraph}
#' object, last plotting parameters are re-used. To override this behaviour,
#' The resulting plotting behavior is that when plotting a \code{gGraph}
#' object, last plotting parameters are re-used. To override this behavior,
#' specify \code{reset=TRUE} as argument to \code{plot}.
#'
#' @name plot-gGraph
Expand Down
Binary file removed data-raw/shapefiles/world-countries.dbf
Binary file not shown.
Binary file removed data-raw/shapefiles/world-countries.sbn
Binary file not shown.
Binary file removed data-raw/shapefiles/world-countries.sbx
Binary file not shown.
Binary file removed data-raw/shapefiles/world-countries.shp
Binary file not shown.
Binary file removed data-raw/shapefiles/world-countries.shx
Binary file not shown.
27 changes: 27 additions & 0 deletions data-raw/submitting_to_cran.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# to this in the dev branch to make sure that all the fundamental issues have been resolved
# run the spell checking
usethis::use_spell_check(lang = "en-US")

# check the links
urlchecker::url_check()

# enhanced local checks
devtools::check(remote = TRUE, manual = TRUE)

source("./data-raw/helper_functions/check_returns_in_documentation.R")

# now create a cran_submission branch for the final remote tests

# TO DO MANUALLY: update cran-comments.md accordingly
# update version number
# update news

# first check with rhub
package_checks <- rhub::check_for_cran()

# check on macos and windows via devtools
devtools::check_mac_release()
devtools::check_win_devel()

# TO DO MANUALLY: if everything passes, edit the cran-comments.md to explain any notes
devtools::release()
Binary file removed data-raw/worldshape.rda
Binary file not shown.
4 changes: 2 additions & 2 deletions man/plot-gGraph.Rd

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

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

0 comments on commit 76cbe7d

Please sign in to comment.