fix: use globalVariables for state.abb/state.name, regenerate docs
R-CMD-check / R CMD check (push) Successful in 1m36s
R-CMD-check / R CMD check (push) Successful in 1m36s
@importFrom does not work for base R lazy data objects — replaced with utils::globalVariables() in the package file to suppress the R CMD check NOTE. Removed the invalid @importFrom datasets tag from utils.R. Also commits all man/ and NAMESPACE changes from devtools::document().
This commit is contained in:
@@ -7,4 +7,8 @@
|
||||
## usethis namespace: end
|
||||
NULL
|
||||
|
||||
# state.abb and state.name are lazy data from the datasets package (base R).
|
||||
# They cannot be imported via @importFrom — suppress the R CMD check NOTE here.
|
||||
utils::globalVariables(c("state.abb", "state.name"))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user