- 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$
|
||||||
^\.Rproj\.user$
|
^\.Rproj\.user$
|
||||||
^\.github$
|
^\.github$
|
||||||
|
^\.gitea$
|
||||||
^README\.Rmd$
|
^README\.Rmd$
|
||||||
^Makefile$
|
^Makefile$
|
||||||
^Dockerfile$
|
^Dockerfile$
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
@@ -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")
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user