Skip to content

[R-pkg-devel] (no subject)

2 messages · Tim Keitt, Georgi Boshnakov

#
I'm seeing:

* checking re-building of vignette outputs ... [3s] WARNING
I'm a little confused because my vignette avoids loading any packages that
are not available. Is this because the "eval" option is not available in
the version of knitr used by CRAN?

Here's the vignette code:
This works fine on my computer even if I uninstall dplyr, etc. But it
appears that when CRAN tries to rebuild the vignette, the "eval" flag is
ignored?

Tricky to reproduce as the exact code used to regenerate the vignette is
not part of the output.

THK


http://www.keittlab.org/
#
Have you put dplyr in 'Suggests'? This should do.

Note that R CMD check runs the code in vignettes twice - once during building and then again the tangled R code file.
So the error may come from the second run. You can check this locally by telling knitr not to clean up after building the vignette and inspecting the generated R file.

I think that in recent versions of knitr there is an option to prevent generating the R file in the first place, so this may solve the problem.

Georgi

--
Dr Georgi Boshnakov               tel: (+44) (0)161 306 3684
School of Mathematics             fax: (+44) (0)161 306 3669
Alan Turing Building 1.125
The University of Manchester      email: Georgi.Boshnakov at manchester.ac.uk
Oxford Road
Manchester M13 9PL
UK


-----Original Message-----
From: R-package-devel [mailto:r-package-devel-bounces at r-project.org] On Behalf Of Tim Keitt
Sent: 10 January 2018 05:49
To: R Package Devel
Subject: [R-pkg-devel] (no subject)

I'm seeing:

* checking re-building of vignette outputs ... [3s] WARNING
I'm a little confused because my vignette avoids loading any packages that are not available. Is this because the "eval" option is not available in the version of knitr used by CRAN?

Here's the vignette code:
This works fine on my computer even if I uninstall dplyr, etc. But it appears that when CRAN tries to rebuild the vignette, the "eval" flag is ignored?

Tricky to reproduce as the exact code used to regenerate the vignette is not part of the output.

THK


http://www.keittlab.org/


______________________________________________
R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel