简体   繁体   English

如何在 Github 的 README 中添加 R-CMD-check state

[英]How to add R-CMD-check state on README at Github

I know how to do R-CMD-check in R Studio and it passed all.我知道如何在 R Studio 中进行 R-CMD-check 并且全部通过。

However, I wish to add this R-CMD-check "passing" state in README file for the package on Github但是,我希望在 Github 上的 package 的 README 文件中添加此 R-CMD 检查“通过” state

Just looks like what the picture shown below.就像下图所示。

I saw others' this part is just a link and when click it, this just turns to this picture.我看到别人的这部分只是一个链接,当点击它时,它就变成了这张图片。

I wish to know how can I do R-CMD-check on Github and so that I can add the "passing" state in README我想知道如何在 Github 上进行 R-CMD 检查,以便在 README 中添加“通过”state

在此处输入图像描述

If you want to get this badge automatically, open the R project with your package and run:如果您想自动获得此徽章,请使用您的 package 打开 R 项目并运行:

usethis::use_github_action_check_standard()

in the R console (or RStudio).在 R 控制台(或 RStudio)中。 This will add a .github/workflows/ folder with some YAML content to your package.这将在您的 package 中添加一个包含一些 YAML 内容的.github/workflows/文件夹。 See documentation .请参阅文档

When you commit and push to GitHub, the check should run automatically.当您提交并推送到 GitHub 时,检查应该会自动运行。 If you want to insert a badge, go to "Actions" menu in the GitHub web interface, open the check results and you'll see the source code of the badge (which is in SVG format) to be inserted into your README.md file. If you want to insert a badge, go to "Actions" menu in the GitHub web interface, open the check results and you'll see the source code of the badge (which is in SVG format) to be inserted into your README.md文件。 It should be updated after each push.每次推送后都应该更新。

For full and really simple manual with screenshots go to https://ropenscilabs.github.io/actions_sandbox/packageci.html#actions-for-continuous-integration-checks .完整且非常简单的屏幕截图手册 go 到https://ropenscilabs.github.io/actions_sandbox-continuousintegration-html

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.

相关问题 Github Actions - R 包 R-CMD-Check &quot;PhantomJS not found&quot; - Github Actions - R package R-CMD-Check "PhantomJS not found" R-CMD-check GitHub Actions 工作流程在警告/注释上失败 - R-CMD-check GitHub Actions workflow failing on warnings/notes Github 上的 R-CMD-check 失败,存在“配置”但不可执行——请参阅“R 安装和管理手册” - R-CMD-check on Github fails with 'configure' exists but is not executable -- see the 'R Installation and Administration Manual' Github 操作失败:为 R-CMD-Check 安装系统依赖项时,进程完成,退出代码为 1 - Github Action failing: Process completed with exit code 1 when installing system dependencies for R-CMD-Check 通过 R-CMD-check 在 R Mac OS 中安装 rgl package - Installing rgl package in R Mac OS via R-CMD-check 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 Github 操作失败,R CMD 检查,使用旧提交? - Github Action failing with R CMD check, using old commit? 如何为R CMD检查设置testthat? - How to setup testthat for R CMD check? 如何在 Github 的 README 中添加 package 徽标图片(已完成设计并保存为 png) - How to add a package logo picture (which has finished design & saved as png) in README at Github 是否可以在github上放置R代码的自述文件,以显示输出? - Is it possible to put a readme file for R code on github, that displays output?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM