简体   繁体   中英

R CRAN check: Package has no Sweave vignette sources and no VignetteBuilder field

With the newest R dev version I get the following error message:

Package has no Sweave vignette sources and no VignetteBuilder field.

If I would use knitr for building my vignette, I would now add VignetteBuilder: knitr to my DESCRIPTION file.

But I am actually using Sweave.

Adding VignetteBuilder: Sweave does not work for me.

Fehler in loadVignetteBuilder(pkgdir, TRUE) : Vignetten-Erzeuger 'Sweave' nicht gefunden

What should I write in the VignetteBuilder field, if I am using Sweave? Maybe you could also tell me what is meant with:" Sweave vignette sources"

Ok, I solved this one.

My mistake was writing:

VignetteBuilder: Sweave

in the DESCRIPTION file of the package.

The correct solution would be:

VignetteBuilder: utils

since Sweave is part of the utils package.

Additionally, I found out that it is also important to add utils also to the Suggests field

Suggests: utils

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM