I'm creating a package in which I want a vignette that uses a dataset provided in the package. What workflow should I use? That is, I think I'd like the vignette to include the command
data("nameofdataset")
I have created the nameofdataset.rdata file and put it in a folder called "data" under my packages folder.
Do I need to build the package first without the vignette and then install it and then build with the vignette and then install again? What is the best practice. Naturally, I like to test my vignette before I build and install. But I need data. thanks.