I have a package with README.Rmd that I pass to rmarkdown::render() creating README.md and the README_files directory that contains the images in README.md . It looks like a tree below.
README_files not a standard package directory , so if it is not in .Rbuildignore , check the package with the R CMD check shows a note:
* checking top-level files ... NOTE Non-standard file/directory found at top level: README_files
But including the directory in .Rbuildignore leads to a warning, if and only when checking the package --as-cran . IIUC Pandoc is trying to generate HTML from README.md , but images are not available in the ignored README_files directory.
Conversion of 'README.md' failed: pandoc: Could not fetch README_files/unnamed-chunk-14-1.png README_files/unnamed-chunk-14-1.png: openBinaryFile: does not exist (No such file or directory)
Is there a way to get a clean --as-cran here?
├── README_files │ └── figure-markdown_github │ ├── unnamed-chunk-14-1.png │ ├── unnamed-chunk-15-1.png │ ├── unnamed-chunk-16-1.png │ ├── unnamed-chunk-26-1.png │ └── unnamed-chunk-27-1.png ├── README.md ├── README.Rmd
r r-markdown pandoc
effel
source share