Currently if caching=TRUE and the data downloads successfully but there is an error writing to the cache file, the data won't be returned at all. It would be better to wrap the writing to cache in a tryCatch and to provide a helpful warning message if it fails.
Currently if
caching=TRUE
and the data downloads successfully but there is an error writing to the cache file, the data won't be returned at all. It would be better to wrap the writing to cache in atryCatch
and to provide a helpful warning message if it fails.