允许在github上的README.md包中使用徽章但在CRAN版本中不允许使用的徽章

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

R CMD check packagename_0.1.1.tar.gz --as-cran产生WARNING,如果README.md中存在徽章。这会导致诸如travis CI之类的后果失败(因为它将警告视为错误)

是否有一种解决方法可以使支票通过而不删除徽章?

这里是WARNING的示例

* checking top-level files ... WARNING
Conversion of ‘README.md’ failed:
pandoc: Could not fetch https://www.r-pkg.org/badges/version/bigrquery
TlsExceptionHostPort (HandshakeFailed (Error_Misc "user error (unexpected type received. expecting handshake and got: Alert [(AlertLevel_Fatal,HandshakeFailure)])")) "www.r-pkg.org" 443

相关:pandoc: Could not fetch http://www.r-pkg.org/badges/version/package TlsExceptionHostPort (HandshakeFailed

r r-package cran
1个回答
0
投票

这是在网页中嵌入(静态)徽章的解决方法。它们不会自动更新。

查看以下文件中的自述文件:https://gitlab.com/ferroao/idiogramFISH。在Windows中使用devtools进行安装时,这也可以处理错误,该过程没有在线连接(请参阅小插图index.Rmd)。如果您想查看依赖关系和小插图构建器,也请查看DESCRIPTION。

从.Rmd(Rmarkdown)生成.md。

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