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