fix: resolve all R CMD check errors and notes
R-CMD-check / R CMD check (push) Failing after 1m32s

- Wrap get_fips/get_stabbr examples in dontrun (tidycensus is Suggests)
- Add .gitea to .Rbuildignore (hidden dir note)
- Add importFrom(datasets, state.abb/state.name) for postcode_lookup
- Remove LazyData: true (no data/ directory)
This commit is contained in:
2026-05-17 09:30:01 -06:00
parent d17a4fbc7c
commit b84fc2f7d0
6 changed files with 8 additions and 3 deletions
+1
View File
@@ -1,6 +1,7 @@
^.*\.Rproj$ ^.*\.Rproj$
^\.Rproj\.user$ ^\.Rproj\.user$
^\.github$ ^\.github$
^\.gitea$
^README\.Rmd$ ^README\.Rmd$
^Makefile$ ^Makefile$
^Dockerfile$ ^Dockerfile$
-1
View File
@@ -22,7 +22,6 @@ Imports:
grid, grid,
stringdist stringdist
Encoding: UTF-8 Encoding: UTF-8
LazyData: true
Suggests: Suggests:
testthat (>= 3.0.0), testthat (>= 3.0.0),
tidycensus tidycensus
+2
View File
@@ -41,6 +41,8 @@ export(z_gap_test)
export(z_univariate) export(z_univariate)
import(ggplot2) import(ggplot2)
importFrom(ggplot2,theme) importFrom(ggplot2,theme)
importFrom(datasets,state.abb)
importFrom(datasets,state.name)
importFrom(graphics,plot) importFrom(graphics,plot)
importFrom(graphics,rasterImage) importFrom(graphics,rasterImage)
importFrom(grid,grid.draw) importFrom(grid,grid.draw)
+1 -1
View File
@@ -171,7 +171,7 @@ na_sum <- function(x) {
#' Title #' Title
#' #'
#' @param x a vector of state names #' @param x a vector of state names
## #' @importFrom datasets state.abb state.name #' @importFrom datasets state.abb state.name
#' @return state abbreviations matching state naems provided in X #' @return state abbreviations matching state naems provided in X
#' @export #' @export
#' #'
+2 -1
View File
@@ -16,7 +16,8 @@ FIPS codes that match the abbreviation
Get the FIPS code for a given state abbreviation Get the FIPS code for a given state abbreviation
} }
\examples{ \examples{
\dontrun{
get_fips("MT") get_fips("MT")
get_fips("PR") get_fips("PR")
get_fips("CC") }
} }
+2
View File
@@ -16,5 +16,7 @@ a character value, length 2, with the state abbreviation
Get the state abbreviation from a given FIPS Code Get the state abbreviation from a given FIPS Code
} }
\examples{ \examples{
\dontrun{
get_stabbr("06") get_stabbr("06")
} }
}