- 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:
@@ -1,6 +1,7 @@
|
||||
^.*\.Rproj$
|
||||
^\.Rproj\.user$
|
||||
^\.github$
|
||||
^\.gitea$
|
||||
^README\.Rmd$
|
||||
^Makefile$
|
||||
^Dockerfile$
|
||||
|
||||
@@ -22,7 +22,6 @@ Imports:
|
||||
grid,
|
||||
stringdist
|
||||
Encoding: UTF-8
|
||||
LazyData: true
|
||||
Suggests:
|
||||
testthat (>= 3.0.0),
|
||||
tidycensus
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user