BLE-LTER / BLEdatatools

R package to download and collate BLE LTER data from EDI repository
Other
0 stars 0 forks source link

write function to check when data was last updated and updates them if there have been new changes compared to the local version #6

Open atn38 opened 2 years ago

alinaCO2spera commented 2 years ago

I have drafted a function that does this by checking if the name of downloaded files on the local machine matches latest version of package identifiers from download_data(). This way of doing it does not work if the user edits the file names (which is likely). The other option is using md5 hash, but that will change if the file is modified (which is also likely) but not if the file name is changed.

I am not sure which is more likely, so I can't move forward writing this without deciding which method to use. Maybe both?? Is there another way to do this that we have not thought of yet?