nationalparkservice / NPSutils

NPSutils contains functions for accessing, downloading, loading in to R and filtering data packages on DataStore
https://nationalparkservice.github.io/NPSutils/
Other
6 stars 2 forks source link

Clear 'raw' folder when redownloading package #11

Closed juddpatterson closed 2 years ago

juddpatterson commented 3 years ago

The results are messy if a package is downloaded and unzipped (via getDataPackage), the source package changes on Data Store, and the getDataPackage is used again. It would seem to make sense to clear out the 'raw' folder for a particular data package if getDataPackage is run more than once. Be sure to consider this issue in context with #6.

RobLBaker commented 2 years ago

data packages specifications have changed: they no longer have 'raw' or 'data' folders