Windows R CMD检查顶层文件:(自述文件] [警告]此文档格式要求非空 元素

问题描述 投票:0回答:1

我已经在Win,OSX和Linux上将GitHub Action激活为CI forR。在Windows上,仅会发生以下警告(变成错误)。

* checking top-level files ... WARNING

Conversion of 'README.md' failed:

[WARNING] This document format requires a nonempty <title> element.

  Please specify either 'title' or 'pagetitle' in the metadata,

  e.g. by using --metadata pagetitle="..." on the command line.

  Falling back to 'README'

here完整报告。

似乎由CMD check直接调用,因此我无法将调用更改为pandoc。

另一方面,我试图将pandoc参数包含在README.Rmd标头中,因为它被建议为here

output:
  github_document: 
    pandoc_args: "--number-offset=1,0"
    toc: true
pagetitle: covid19ita

没有作用。

注意:我不会从CMD检查中删除error_on = "warning"

我该怎么做才能使测试也通过获胜?

r r-markdown pandoc r-package github-actions
1个回答
0
投票
因此,我目前的解决方案是确保所有标记均已准备就绪

before或更改

after后会执行检查操作(例如,仅使用gh-action)。

© www.soinside.com 2019 - 2024. All rights reserved.