Closed ElsLommelen closed 3 years ago
I've encountered this issue too. See https://github.com/inbo/checklist/issues/40.
What is actually checked in these files?
If it is relevant, I think it's a pity that these tests are also ignored in the Linux tests because we put them in .Rbuildignore
just because of the note. I'd rather ignore the note, unfortunately here again we have to choose once for both Windows and Linux. If relevant, I'd rather suggest a PR to ignore this specific test on Windows machines (if possible). If it's just a check if the file is present, ignoring is indeed the right thing to do.
I think that R CMD checks if it can renders those files to html. If you add them to .Rbuildignore
, they will not be ables on CRAN. So not an issue for packages not on CRAN.
Thanks, that solves the problem for me. I find, however, a bit counter-intuitive to add it to .Rbuildignore
while I want these files to be added to my pkgdown website. Anyway, I think it would be useful to add the above information in the documentation before closing this issue, otherways you may have to answer this same question several times. ;-)
Adding them to .Rbuildignore excludes them from the package. So they will not be available after installation of a binary version. However, they are still available in the source code and rendered to the pkgdown website.
I assume the message occurs when running check_cran()
? As that is the function that calls rcmdcheck()
.
Yes, indeed, it occurs when running check_cran()
. But it doesn't occur when running rcmdcheck::rcmdcheck()
.
Interesting. checklist uses rcmdcheck(args = c("--timings", "--as-cran", "--no-manual"), error_on = "never", quiet = FALSE)
. Could you give that a try? Don't forget to (temporary) remove the md files from .Rbuildignore
;-)
Unfortunately, the error occurs in this case. I could try to remove the args alternately to check the culprit, but I suppose you want to keep them all? (And I suppose "--as-cran"
is likely to be the culprit. ;-) )
The culprit is rcmdcheck()
which is not able to detect the installed pandoc. --as-cran
implies to run all checks as required by CRAN. We do need all those checks.
The code below doesn't give the note, maybe check_cran()
can be replaced with this code in check_package()
? (If needed, surrounded by a check if the OS is Windows, and until it is solved in rcmdcheck.)
withr::with_path(dirname(rmarkdown::pandoc_exec()), check_cran())
When following this manual to install the checks on an existing package (inbodb), I got the following note when running
x <- checklist::check_package()
:When doing the regular checks in RStudio (with or without adding the option
--as-cran
), I don't get this note, so I suppose this remark is coming from checklist? On the other hand I noticed on the tutorials website that pandoc is automatically installed with RStudio, so I should have it installed?I don't understand why this note is there and it would be good to somewhere in the documentation find some advise on how to deal with it (preferably with a reference to the documentation in the note itself).