问题
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