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\.user$
^\.github$
^\.gitea$
^README\.Rmd$
^Makefile$
^Dockerfile$
-1
View File
@@ -22,7 +22,6 @@ Imports:
grid,
stringdist
Encoding: UTF-8
LazyData: true
Suggests:
testthat (>= 3.0.0),
tidycensus
+2
View File
@@ -41,6 +41,8 @@ export(z_gap_test)
export(z_univariate)
import(ggplot2)
importFrom(ggplot2,theme)
importFrom(datasets,state.abb)
importFrom(datasets,state.name)
importFrom(graphics,plot)
importFrom(graphics,rasterImage)
importFrom(grid,grid.draw)
+1 -1
View File
@@ -171,7 +171,7 @@ na_sum <- function(x) {
#' Title
#'
#' @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
#' @export
#'
+2 -1
View File
@@ -16,7 +16,8 @@ FIPS codes that match the abbreviation
Get the FIPS code for a given state abbreviation
}
\examples{
\dontrun{
get_fips("MT")
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
}
\examples{
\dontrun{
get_stabbr("06")
}
}