[R-pkg-devel] Cache in vignette not working when checking a package
Jose Barrera
jo@e@b@rrer@ @end|ng |rom |@g|ob@|@org
Mon Feb 1 11:09:47 CET 2021
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 proceeded as follows:
1) R CMD build collin --resave-data
* creating vignettes... ---> 4 minutes
2) R CMD check --as-cran collin_0.0.1.tar.gz
* checking re-building of vignette outputs ... ---> 4 minutes
3) I install "collin_0.0.1.tar.gz" in my laptop
4) In an R session, I build the vignette "collin/vignettes/collin.Rnw". It
takes 4.7 minutes and the "cache" folder is created in "collin/vignettes/"
5) I remove all aux files in "collin/vignettes/" (now, the only extra item
is the "cache" folder)
6) I re-build the vignette in the R session and now it takes only 8
seconds, so the cache is working
7) Repeat 5)
8) Repeat 1) and 2) but it still takes 4 minutes so it seems like R CMD
build and R CMD check are ignoring the "cache" folder in
"collin/vignettes/".
I would be very grateful if you could provide some advice on how to fix the
problem.
Best,
Jose Barrera
Statistician, Associate Lecturer
ISGlobal
Barcelona Institute for Global Health - Campus MAR
Barcelona Biomedical Research Park (PRBB) (Room Hypatia)
Doctor Aiguader, 88
08003 Barcelona, Spain
Tel. +34 93 2147383
jose.barrera using isglobal.org
www.isglobal.org
--
This message is intended exclusively for its addressee and may contain
information that is CONFIDENTIAL and protected by professional privilege.
If
you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited
by law. If this message has been received in error, please
immediately notify
us via e-mail and delete it.
DATA PROTECTION. We
inform you that your personal data, including your
e-mail address and data
included in your email correspondence, are included in
the ISGlobal
Foundation files. Your personal data will be used for the purpose
of
contacting you and sending information on the activities of the above
foundations. You can exercise your rights of access, rectification,
cancellation and opposition by contacting the following address:
lopd using isglobal.org <mailto:lopd using isglobal.org>. ISGlobal
Privacy Policy at
www.isglobal.org <http://www.isglobal.org/>.
-----------------------------------------------------------------------------------------------------------------------------
CONFIDENCIALIDAD. Este mensaje y sus anexos se dirigen exclusivamente a
su
destinatario y puede contener información confidencial, por lo que la
utilización,
divulgación y/o copia sin autorización está prohibida por la
legislación
vigente. Si ha recibido este mensaje por error, le rogamos lo
comunique
inmediatamente por esta misma vía y proceda a su destrucción.
PROTECCIÓN DE DATOS. Sus datos de carácter personal utilizados en este
envío, incluida su dirección de e-mail, forman parte de ficheros de
titularidad
de la Fundación ISGlobal para cualquier
finalidades de
contacto, relación institucional y/o envío de información sobre
sus
actividades. Los datos que usted nos pueda facilitar contestando este
correo quedarán incorporados en los correspondientes ficheros, autorizando
el
uso de su dirección de e-mail para las finalidades citadas. Puede
ejercer los
derechos de acceso, rectificación, cancelación y oposición
dirigiéndose a lopd using isglobal.org <mailto:lopd using isglobal.org>* *. Política de
privacidad
en www.isglobal.org <http://www.isglobal.org/>.
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list