You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a static image file under man/figures/vignettes/a/b/c/image.png
When building the site, I get the warning:
Missing images in vignettes/a_file.Rmd:
../reference/figures/articles/a/b/c/image.png
ℹ pkgdown can only use images in man/figures and vignettes
The generated HTML source indeed refers to ../reference/figures/articles/a/b/c/image.png
But, the actual image has been copied under ../reference/figures/vignettes/a/b/c/image.png
The cause:
Hence, it looks like there is some string substitution happening, which replaces "vignettes" by "articles", which in this case is incorrect or at least not consistent with where the image files are copied to.
I believe this happens here:
The issue:
vignettes/
: an filea_file.Rmd
, with a chunk that includes a static imageman/figures/vignettes/a/b/c/image.png
When building the site, I get the warning:
../reference/figures/articles/a/b/c/image.png
../reference/figures/vignettes/a/b/c/image.png
The cause:
Hence, it looks like there is some string substitution happening, which replaces
"vignettes"
by"articles"
, which in this case is incorrect or at least not consistent with where the image files are copied to.I believe this happens here:
pkgdown/R/tweak-tags.R
Line 93 in ffe60d5
The text was updated successfully, but these errors were encountered: