Hi,
I'm running R CMD check for my R package. My R version is 4.2.1, and I have the latest RStudio v2022.07.1. I encounter two warnings while I'm checking my package:
-
checking files in 'vignettes' ... WARNING
Files in the 'vignettes' directory but no files in 'inst/doc':
'package_name.Rmd' -
checking package vignettes in 'inst/doc' ... WARNING
Directory 'inst/doc' does not exist.
Package vignette without corresponding single PDF/HTML:
'package_name.Rmd'
I don't know what is going wrong. The 'inst/doc' directory doesn't exist, as it shoudn't. In the vignette folder, I have my 'package_name.Rmd' file.
The YAML part of my vignette is
title: "package_name package manual"
author: "Author name"
date: "r Sys.Date()
"
output:
BiocStyle::html_document:
toc: true
vignette: >
%\VignetteIndexEntry{package_name package manual}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding[utf8]{inputenc}
In the DESCRIPTION file I have specified these.
Suggests: knitr, rmarkdown, BiocStyle
VignetteBuilder: knitr
I get the warning with Windows 10 and Linux (Ubuntu), so it's not OS related.