pandoc:无法获取http://www.r-pkg.org/badges/version/package TlsExceptionHostPort(握手失败)

时间:2019-05-28 15:01:25

标签: r pandoc cran

运行R CMD check package_0.1.0.tar.gz --as-cran时,我看到以下警告

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

我可以看到一些答案(例如here),但似乎答案是Windows用户(我在Mac上)。我从here重新安装了pandoc,但是这样做之后警告仍然存在。

我对pandoc不熟悉。该警告是包装上唯一的警告/错误/提示,因此非常烦人。任何想法表示赞赏。

这是README.md中的代码(我已将软件包名称替换为ggplot2)

[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/ggplot2)](https://cran.r-project.org/package=ggplot2)

如果我将http更改为https,该错误仍然存​​在,但略有不同

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

0 个答案:

没有答案