Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining external images with vignettes to make pkgdown article #1231

Closed
jeffwong-nflx opened this issue Mar 1, 2020 · 1 comment
Closed

Comments

@jeffwong-nflx
Copy link

jeffwong-nflx commented Mar 1, 2020

There is a similar, closed issue here: #1027 which I feel is incomplete.

I have a package with a vignettes folder. Inside that folder is another folder called images. In the .Rmd I use knitr::include_graphics(<full path to image file>) in an Rmd chunk to display the image.
When I knit the vignette, the images render. However, if I use pkgdown the resulting article does not render the images.

I believe this is because the docs directory created by pkgdown needs to copy the images from vignettes/images/. I can see that the article's .html source file is trying to reference an image located in images/<my_image.jpg>, but there is no such directory called images inside docs. How can I trigger pkgdown to do a copy based on <full path to image files> ?

@hadley
Copy link
Member

hadley commented Mar 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants