PredictiveEcology/SpaDES

downloadModule/downloadData should check for local files before checking remotely for download

achubaty opened this issue · 3 comments

Although the files exist locally, downloadModule is still checking for the existence of the module remotely for download.

This is a bigger problem with GitHub's API rate limits because only a few calls to downloadModule are needed to trigger a 403 error. The checkModule() call early in the downloadModule() function is being called without first checking to see whether files exist locally. It's worth implementing a local check/checksum for module code, in addition to the checks for downloading data.

@MelinaHoule This may be relevant to our discussions today

note that my changes made in 3e56cf9 aren't checksumming or doing anything special when checking for local copies of modules -- just looking for a presence of a few files and checking the version. this should be made more robust.

This issue was moved to PredictiveEcology/SpaDES.core#17