RStudio deletes inst/doc when checking or building a package

Dear all,
when checking or building a package RStudio deletes the inst/doc folder of my package project. That's scary. Am I overlooking something or is this a bug? I am using version RStudio 1.1.463 with R 3.5.2. and Rtools35 under Windows 10.
Kind regards
Jens

This behavior comes from the underlying call to devtools::check(document = FALSE), cc: https://github.com/r-lib/pkgbuild/blob/6e4ebdf7f63a1a7d35fef3881f21c62bec1a1c40/R/build.R#L138-L148

I believe the intention is that inst/doc will normally just contain built vignettes, and so the intention is to remove and restore that folder when vignettes are rebuilt. You could file an issue here to see what the package maintainer thinks.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.