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

False warning for missing images #1980

Closed
BartJanvanRossum opened this issue Dec 30, 2021 · 1 comment
Closed

False warning for missing images #1980

BartJanvanRossum opened this issue Dec 30, 2021 · 1 comment
Labels
bug an unexpected problem or unintended behavior home 🏠
Milestone

Comments

@BartJanvanRossum
Copy link

Building the website for https://github.com/Biometris/statgenSTA/tree/develop using the series of commands below gives me this warning.
Missing images in 'README.md': 'reference/figures/README-layoutPlot-1.png', 'reference/figures/README-mapPlot-1.png', 'reference/figures/README-boxPlot-1.png', 'reference/figures/README-scatterPlot-1.png', 'reference/figures/README-basePlot-1.png', 'reference/figures/README-spatialPlot-1.png'
i pkgdown can only use images in 'man/figures' and 'vignettes'

The 'missing' images mentioned are the ones that we just created by the build_readme() command and they are all present in man/figures. The website looks fine, and the images are included, so this warnings seems redundant. I really don't know at all what triggers it.

I tried the CRAN version of pkgdown and the main branch from github, but the warnings are the same.

devtools::build_readme()
pkgdown::clean_site()
pkgdown::build_site()

This seems somewhat related to #1943, however seems about including images directly from files whereas my images are generated using plot functions.

@hadley
Copy link
Member

hadley commented Jan 6, 2022

Same as #1977

@hadley hadley added bug an unexpected problem or unintended behavior home 🏠 labels Jan 6, 2022
@hadley hadley added this to the v2.0.2 milestone Jan 6, 2022
@hadley hadley closed this as completed in 8b2f4d0 Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior home 🏠
Projects
None yet
Development

No branches or pull requests

2 participants