I am trying to add a package's vignette and have it show up in its documentation when I use usethis functions 1.4.0.9000 and devtools 2.0.1 in RStudio 1.1.463. I made a new package with usethis and set the license then added a generic vignette:
setwd("~/Desktop")
usethis::create_package("blah")
usethis::use_gpl3_license("me")
usethis::use_vignette("a-vignette")
I tweaked the vignette gently so it would knit. I comment out the library call and add some text to a blank last line of the vignette :
```{r setup}
#library(blah)
```
Hello World
and then checked it works by using the Knit button and it Knits and displays the HTML page.
I use the Build tab More menu and chose Document and it says:
Updating blah documentation
Loading blah
Documentation complete
There is no mention of the vignette. So I am thinking this is only working in the man folder...
I then use the Build menu Install and Restart button and then open the package documentation (in the packages windowpane) it does not say anything about the vignette.
So I tried using:
devtools::build_vignettes()
and it gives me feedback that makes sense:
Building blah vignettes
Moving a-vignette.html, a-vignette.R to doc/
Copying a-vignette.Rmd to doc/
Building vignette index
But again when I install and Restart the documentation has no mention of the vignette.
So, how do I have a vignette show up as a link in its package documentation?