I have hit a few problems trying to build a vignette that uses a number of relative paths to resources. Everything builds fine if I knit from the Rstudio button or call rmarkdown::render on the file directly, but when I use devtools::check or pkgdown::build_site, I get variously a message about missing resources or pandoc error 99.
I am pretty certain that this is due to the Rmd being built from the wrong directory - breaking the relative paths. If I change the paths though, then the echoed paths in my tutorial do not match what the user has just downloaded from my website.
Is there a recommended workflow for this? I tried using here::here in knitr::opts_chunk$set at one point, but I still get the error. An option for build_site to build vignettes from the document directory would be perfect, but I have not found such a parameter.