cdcfluview icon indicating copy to clipboard operation
cdcfluview copied to clipboard

where are the shape files stored?

Open nickreich opened this issue 6 years ago • 3 comments

I've been trying to adapt some of your code for a different project and am trying to figure out how you reference the shapefiles in the cdc_basemap() function. Where are those shapefiles stored or from where are you reading them in?

nickreich avatar Jul 24 '18 15:07 nickreich

The URLs for them are at:

https://github.com/hrbrmstr/cdcfluview/blob/master/R/aaa.R#L17-L22

hrbrmstr avatar Jul 24 '18 19:07 hrbrmstr

Very helpful, thanks! May I suggest making it easier for someone to traceback and find those global variables by either putting them in a more aptly named sourcefile or putting them in the same sourcefile as the cdc_basemap() function? Unless the aaa.R file is some convention I'm not aware of, this seems like a strange place for those links to be hiding. I'd be happy to submit a pull request with this change.

nickreich avatar Jul 24 '18 21:07 nickreich

such a PR is most welcome! I (and some others) tend to use aaa.R as a catch-all for "global" things we want available anywhere without having to use roxygen collate tags. In this case, I totally agree the shapefiles are unlikely to be used outside those functions.

Generally, when I'm doing similar spelunking in other folks' pkgs I tend to try the ::: route when I see something in the sources that aren't populated in the exported namespace. tis sub-optimal, but generally gets to the hidden bits pretty well.

hrbrmstr avatar Jul 24 '18 21:07 hrbrmstr