Skip to content
This repository was archived by the owner on May 10, 2022. It is now read-only.

cmip_fetch() with overwrite = TRUE is not re-fetching the data #15

Open
cvitolo opened this issue Mar 11, 2017 · 2 comments
Open

cmip_fetch() with overwrite = TRUE is not re-fetching the data #15

cvitolo opened this issue Mar 11, 2017 · 2 comments
Labels

Comments

@cvitolo
Copy link

cvitolo commented Mar 11, 2017

This issue is part of this rOpenSci review.

I tried to run the following

key <- "bcsd/yearly/cnrm_cm3.1/cnrm_cm3.1.sresa1b.monthly.Prcp.2034.nc"
res <- cmip_fetch(key)
res1 <- cmip_fetch(key, overwrite = TRUE)

But noticed that the second time, it is not re-fetching the data. Is this the expected behaviour?

Maybe mention in the documentation that the data are going to be cached?

@bpbond
Copy link

bpbond commented Mar 13, 2017

Yes. I also couldn't get the "file exists and ovewrite != TRUE" message to print, so probably look hard at this logic/documentation.

@bpbond
Copy link

bpbond commented Mar 13, 2017

Note also there's no test that checks whether overwrite works or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants