I can confirm that I see this warning when I check a package with R 4.0.2 on Windows 10:
* checking for unstated dependencies in examples ... OK
WARNING
'qpdf' is needed for checks on size reduction of PDFs
However, note that this a warning, not an error. You can ignore this warning. It shouldn't affect your ability to share your project.
I think this is due to the following update noted in the release notes for R 4.0:
R CMD check --as-cran now runs \donttest examples (which are run by example() ) instead of instructing the tester to do so. This can be temporarily circumvented during development by setting environment variable _R_CHECK_DONTTEST_EXAMPLES_ to a false value.
So you have multiple options:
- Ignore the warning (recommended)
- Create an
.Renviron file and add _R_CHECK_DONTTEST_EXAMPLES_=FALSE
- Don't use the
--as-cran flag when running R CMD check. This is unnecessary if you aren't planning on submitting to CRAN. If you do want to submit to CRAN, check your package on the CRAN Windows server with devtools::check_win_release() to confirm the warning does not appear.