Create a new RStudio project of type package. Create a vignettes directory.
Create two new R Markdown templates. One in the top level of the package (same level as DESCRIPTION
) and one in the vignettes directory. knit both to html.
The resulting html file for the first .Rmd is right next to the .Rmd, at the highest level of the package. This is the behavior I expect.
The resulting html file for the second .Rmd is, for me, placed in a temporary directory like:
/private/var/folders/mk/lh99bg295msg8myvcf5yczkc0000gn/T/RtmpDNga3D/preview-152834fe09ff.dir/Untitled.html
and not in the vignettes directory.
Is this the intended behavior? Any pointers to the appropriate documentation appreciated!
Is there an easy way to change this? I would prefer the same behavior in the vignettes directory (create the hmtl and leave it right there) that I see in the top level directory.
I am on a Mac.