简体   繁体   English

请注意R CRAN检查 - *检查顶级文件...注意如果没有安装'pandoc',则无法检查文件README.md

[英]Note in R CRAN check — * checking top-level files … NOTE File README.md cannot be checked without ‘pandoc’ being installed

I am checking my R package for CRAN submission, but there is one NOTE that I cannot get rid of. 我正在检查我的R包提交CRAN,但有一个注意我无法摆脱。 I googled it but seems this NOTE is not common thus I didn't find much useful information. 我用谷歌搜索它,但似乎这个注意不常见,因此我没有找到太多有用的信息。 Could any one provide me with a solution? 任何人都可以为我提供解决方案吗? Below is part of the output from R CMD check --as-cran . 以下是R CMD check --as-cran输出的一部分。

* using R version 3.2.0 (2015-04-16)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* using option ‘--as-cran’
...
...
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... NOTE
File README.md cannot be checked without ‘pandoc’ being installed.
* checking for left-over files ... OK
* checking index information ... OK

您可以使用installr包中的install.pandoc()从R中安装pandoc。

Windows R CMD 检查顶级文件:(README)[警告]此文档格式需要非空<title>元素&lt;/div&gt;</title><div id="text_translate"><p> 我已在 Win、OSX 和 Linux 上为 R 激活 GitHub 对 CI 的操作。 在 Windows 上只发生以下警告(变成错误)。</p><pre> * checking top-level files... WARNING Conversion of 'README.md' failed: [WARNING] This document format requires a nonempty &lt;title&gt; element. Please specify either 'title' or 'pagetitle' in the metadata, eg by using --metadata pagetitle="..." on the command line. Falling back to 'README'</pre><p> <a href="https://github.com/UBESP-DCTV/covid19ita/pull/62/checks?check_run_id=594799232" rel="nofollow noreferrer">这里</a>是完整的报告。</p><p> 似乎它是由 CMD 直接检查调用的,因此我无法更改对 pandoc 的调用。</p><p> 另一方面,我尝试在README.Rmd header 中包含一个 pandoc 参数,正如<a href="https://community.rstudio.com/t/rmarkdown-document-format-requires-a-nonempty-title-element/36774" rel="nofollow noreferrer">这里</a>所建议的那样:</p><pre> output: github_document: pandoc_args: "--number-offset=1,0" toc: true pagetitle: covid19ita</pre><p> 它没有效果。</p><p> 注意:我不会从 CMD 检查中删除error_on = "warning" 。</p><p> 我该怎么做才能使测试也通过胜利?</p></div> - Windows R CMD check top-level files: (README) [WARNING] This document format requires a nonempty <title> element

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CRAN 指出,如果不安装“pandoc”,则无法检查文件 - CRAN notes that files cannot be checked without ‘pandoc’ being installed README.md包含图像时,从程序包检查“注意”或“警告” - NOTE or WARNING from package check when README.md includes images Windows R CMD 检查顶级文件:(README)[警告]此文档格式需要非空<title>元素&lt;/div&gt;</title><div id="text_translate"><p> 我已在 Win、OSX 和 Linux 上为 R 激活 GitHub 对 CI 的操作。 在 Windows 上只发生以下警告(变成错误)。</p><pre> * checking top-level files... WARNING Conversion of 'README.md' failed: [WARNING] This document format requires a nonempty &lt;title&gt; element. Please specify either 'title' or 'pagetitle' in the metadata, eg by using --metadata pagetitle="..." on the command line. Falling back to 'README'</pre><p> <a href="https://github.com/UBESP-DCTV/covid19ita/pull/62/checks?check_run_id=594799232" rel="nofollow noreferrer">这里</a>是完整的报告。</p><p> 似乎它是由 CMD 直接检查调用的,因此我无法更改对 pandoc 的调用。</p><p> 另一方面,我尝试在README.Rmd header 中包含一个 pandoc 参数,正如<a href="https://community.rstudio.com/t/rmarkdown-document-format-requires-a-nonempty-title-element/36774" rel="nofollow noreferrer">这里</a>所建议的那样:</p><pre> output: github_document: pandoc_args: "--number-offset=1,0" toc: true pagetitle: covid19ita</pre><p> 它没有效果。</p><p> 注意:我不会从 CMD 检查中删除error_on = "warning" 。</p><p> 我该怎么做才能使测试也通过胜利?</p></div> - Windows R CMD check top-level files: (README) [WARNING] This document format requires a nonempty <title> element R CMD Check: Unusual Checking install package size note - R CMD Check: Unusual Checking installed package size note 来自R CMD的两个NOTE消息检查--as-cran - Two NOTE messages from R CMD check --as-cran 在 github 上的 README.md 包中允许徽章但在 CRAN 版本中不允许徽章的解决方法 - Workaround to allow badges in package README.md on github but not in CRAN version 检查CRAN传入的可行性...注意维护者 - checking CRAN incoming feasibility … NOTE Maintainer 请注意,将新版本的 package 发送到 cran “检查 CRAN 传入可行性...... Note_to_CRAN_maintainers”不会让我将其发送到 CRAN - note when sending new version of package to cran "checking CRAN incoming feasibility ... Note_to_CRAN_maintainers" wont let me send it to CRAN R:检查检查目录中的非标准内容...注意找到以下文件/目录 - R: checking for non-standard things in the check directory ... NOTE Found the following files/directories R CRAN中的注释检查:没有存储库集,因此跳过循环依赖性检查 - NOTE in R CRAN Check: No repository set, so cyclic dependency check skipped
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM