Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-02 Thread Duncan Murdoch
On 01/02/2021 1:51 p.m., Jose Barrera wrote: Indeed, the "cache" folder is not present in the tar.gz file. Could you please help me on how to fix "the cache is not installed into the package"? Where is the cache on your local system? I think if it is in the vignettes/_cache directory, it

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-02 Thread Jose Barrera
Dear Dirk, Thanks for clarifying, now I can see Thierry's point. But the issue is that doing that my vignette would lose the "reproducible research" property because the Rnw would need all those artefacts to reproduce the pdf. I know I could combine Thierry's suggestion with playing with echo =

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Dirk Eddelbuettel
On 1 February 2021 at 20:21, Jose Barrera wrote: | Many thanks for your help Thierry but unfortunately I can't see the link | between your first reply and my issue (of course, that's my fault). Thierry very gently (yet correctly) suggested to have the "cached" results as "precomputed"

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Thierry Onkelinx
That will be hard to do without your package. Note that I've suggested a work around in my first reply. ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie &

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Jose Barrera
Many thanks for your help Thierry but unfortunately I can't see the link between your first reply and my issue (of course, that's my fault). Jose Barrera Statistician, Associate Lecturer *IS**Global* Barcelona Institute for Global Health - Campus MAR Barcelona Biomedical Research Park (PRBB)

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Jose Barrera
Indeed, the "cache" folder is not present in the tar.gz file. Could you please help me on how to fix "the cache is not installed into the package"? Thanks, Jose Barrera Statistician, Associate Lecturer *IS**Global* Barcelona Institute for Global Health - Campus MAR Barcelona Biomedical Research

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Thierry Onkelinx
Probably because the cache is not installed into the package. I'd check the tar.gz file to see if the cache is present. ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Jose Barrera
Dear Thierry, Thanks for your advice. However, I would like to understand why when I build the vignette to get the pdf from the Rnw, it takes just 8 seconds once the "cache" folder has been created instead of the initial 4 minutes, but this time reduction does not happen when checking the

Re: [R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Thierry Onkelinx
Dear Jose, I store the results of CPU intensive chunks in the package. Have a look at https://github.com/ropensci/git2rdata/blob/master/vignettes/efficiency.Rmd. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN

[R-pkg-devel] Cache in vignette not working when checking a package

2021-02-01 Thread Jose Barrera
Dear all, I have an issue when checking a package that includes a vignette using cache = TRUE in some chunks. The vignette is generated with knit from an Rnw document. The issue is that cache works when building the vignette locally but it seems not working when checking the package. I have