I wanted to share an issue that I came across while updating my R-package.
I uploaded my package two months ago to GitHub and today, I wanted to check whether devtools::check() ran without problems and without changing anything to the code.
However, I ran into the following issues:
When running devtools::check() the following error occured:
creating vignettes (14.9s)
--- re-building ‘raincloudplots.Rmd’ using rmarkdown
object 'is_R_CMD_check' not found`
Error: Vignette re-building failed.
After reading up on some websites, I was able to resolve this error by changing the following in the Vignette YAML:
%\VignetteEngine{knitr::rmarkdown}
into
%\VignetteEngine{rmarkdown::render}
Thereafter, the devtools::check() ran until the end with the following warning:
checking files in ‘vignettes’ ... WARNING
Files in the 'vignettes' directory but no files in 'inst/doc':
‘raincloudplots.Rmd’
My questions:
Why would I now have to change the YAML data, while devtools::check() ran perfectly two months ago?
Any suggestions on how to resolve the inst/doc warning?
Both error and warning did not occur previously on the devtools::check() when I uploaded the package two months ago.
This is not a valid vignette engine, and should not be used. Could you tell us where you found this so we can ask the author to correct the false information?