Use CRAN convention for writing R package persistent data by setting R option thesis.data to the following path:
tools::R_user_dir('thesis', which = 'data')
Downloads of tigris shapefiles are minimized, storing a set of states borders and separate state county boundaries to individual .rda files as paths from thesis.data. This option is set by .onLoad() when the package namespace is loaded.
Two new public methods are defined to retrieve data via tigris:
SpecimenMap$tigris_states()
SpecimenMap$tigris_counties()
After downloading, the respective simple features sf data frames are assigned as R6 public fields:
SpecimenMap$sf_states
SpecimenMap$sf_counties
Closes #86
[ ] Replace deprecated layer_borders() to resolve #99
Use CRAN convention for writing R package persistent data by setting R option
thesis.data
to the following path:Downloads of
tigris
shapefiles are minimized, storing a set of states borders and separate state county boundaries to individual.rda
files as paths fromthesis.data
. This option is set by.onLoad()
when the package namespace is loaded.Two new public methods are defined to retrieve data via
tigris
:SpecimenMap$tigris_states()
SpecimenMap$tigris_counties()
After downloading, the respective simple features
sf
data frames are assigned asR6
public fields:SpecimenMap$sf_states
SpecimenMap$sf_counties
Closes #86
layer_borders()
to resolve #99