natverse / flycircuit

R package flycircuit

Home Page:https://natverse.github.io/flycircuit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fc_download_data should check local disk for data more intelligently

jefferis opened this issue · comments

It would be best if it used e.g. url header to decide whether an update was required

Partial solution here 7f99c16. But it would be better to check at a minimum date/file size or ideally to cache the header including etag along with the file so that it can be checked.

Could add a second file called e.g. .myfile.rda or myfile.rda.info alongside myfile.rda with metadata that improves on etag if that won't work. A bit clunk, but fine if we are looking after things.

fixed in commits mentioned above.