Bug 17142 - qpdf checks during R CMD check --as-cran
Summary: qpdf checks during R CMD check --as-cran
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Low-level (show other bugs)
Version: R-devel (trunk)
Hardware: All All
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2016-09-07 08:40 UTC by Kirill Müller
Modified: 2016-09-07 08:40 UTC (History)
0 users

See Also:


Attachments
Test for qpdf existence only if it matters (2.09 KB, patch)
2016-09-07 08:40 UTC, Kirill Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Müller 2016-09-07 08:40:31 UTC
Created attachment 2147 [details]
Test for qpdf existence only if it matters

Packages with a HTML vignette (but no PDF vignette) give warnings with
R CMD check --as-cran on a system without qpdf. I think the warning
originates here [1], due to a premature check for the existence of qpdf
[2]. Setting R_QPDF=true (as in /bin/true) helped, but perhaps it's
possible to check qpdf existence only when it matters.

Example build: https://ci.appveyor.com/project/ropenscilabs/monkeylearn

I have attached a patch (untested, based on r71220) that could serve as a starting
point. Thanks.

[1]
https://github.com/wch/r-source/blob/f42ee5e7ecf89a245afd6619b46483f1e3594ab7/src/library/tools/R/check.R#L322-L326

[2]
https://github.com/wch/r-source/blob/f42ee5e7ecf89a245afd6619b46483f1e3594ab7/src/library/tools/R/check.R#L4426-L4428