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

我是研究僧i 提交于 2020-01-23 16:45:28

问题


When running R CMD check package_0.1.0.tar.gz --as-cran I see the following warning

* 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

I can see some answers (e.g. here) but it seems they are by windows users (I'm on mac). I reinstalled pandoc from here, but after doing so the warning persists.

I am not familiar with pandoc. This warning is the only warning/error/note on the package so it's quite annoying. Any ideas greatly appreciated.

Here is the code in README.md (I've substituted the package name for ggplot2)

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

If I change http to https the error persists but is slightly different

* 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

来源:https://stackoverflow.com/questions/56345077/pandoc-could-not-fetch-http-www-r-pkg-org-badges-version-package-tlsexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!