I am building a new R package. I have the same problem given here. I have also gone through the links suggested. But I keep getting rejections because the note says
"Package has a VignetteBuilder field but no prebuilt vignette index.
So please add a vignette index."
I went to the CRAN package list for latest packages and then went through the code of packages like hyfo , mldr and few others which have all released in the past few days. None of them have an index file. But, my code below is getting rejected. My code does not show any warnings or errors or NOTES when I run devtoold::check()
. I am not getting any warnings/errors on devtools:build_win()
as well.
Any ideas on what I am missing?
I am using R version 3.2.2 on windows. My DESCRIPTION
file which has the following
Package: Mypackage
Suggests:
knitr,
rmarkdown,
R.rsp
VignetteBuilder: knitr
RoxygenNote: 5.0.1
In the vignettes directory, the file Mypackage.Rmd
has
title: "Mypackage"
author: "blah"
date: "`r Sys.Date()`"
output:
html_document:
fig_width: 7
fig_height: 6
fig_caption: true
vignette: >
%\VignetteIndexEntry{Mypackage}
%\VignetteEngine{R.rsp::asis}
%\VignetteEncoding{UTF-8}
---
## Introduction
The contents of the vignette
How do I create the vignette index or how do I make this NOTE disappear?