R CMD build skips knitr / Rmd vignettes - "Exit (s) listed in" build / vignette.rds "but not in package"

I created a rmarkdown tutorial for an R package and would like to include a compiled file when creating the package. Although the file compiles successfully (including when I use it R CMD Sweavefor this), I seem to be unable to include it in the binary.

In particular, when I run R CMD BUILD, I get

* checking for file ‘./DESCRIPTION’ ... OK
[snip]
* installing the package to build vignettes
* creating vignettes ... OK
* checking for empty or unneeded directories
Removed empty directory ‘rentrez/inst/doc’
Removed empty directory ‘rentrez/inst’
Removed empty directory ‘rentrez/vignettes/assets’
Removed empty directory ‘rentrez/vignettes’
* building ‘rentrez_0.2.4.tar.gz’

But after installing this binary file and running vignette(package="rentrez")for the package, there is no blame.

So what am I doing wrong?

If this helps, this branch in the library contains vignettes and related changes in the package. The file itself is located in the directory vignettes/and begins with

<!--
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{rentrez tutorial}
-->

DESCRIPTION

Suggests:
    testthat,-
VignetteBuilder: knitr

R CMD CHECK :

Output(s) listed in 'build/vignette.rds' but not in package:
  ‘inst/doc/rentrez_vignette.html’

, build/vignette.rds R CMD BUILD, , inst/doc ( )

+4
2

, rentrez_* .Rbuildignore . .Rbuildignore

^staticdocs$

staticdocs
+5

inst/doc/. , vignettes/. , , , vignettes, , . HTML. , , , , knitr .

+4

Source: https://habr.com/ru/post/1546176/


All Articles