无法将easyPrint加载到Rstudio中

时间:2019-04-04 19:04:54

标签: leaflet rstudio

我对R和Leaflet非常陌生,所以这可能很容易解决。我能够创建功能齐全的地图,但是人们要求他们也能够打印地图,而不必使用打印屏幕。看来easyPrint将是最好的解决方案,但我无法将其加载到Rstudio中。

我试图以多种方式加载它,并在此过程中遇到不同的错误

install.packages("easyPrint")
Warning in install.packages :
package ‘easyPrint’ is not available (for R version 3.5.2)

(For this I saved it in my documents like it appeared to want me to)
install("leaflet-easyPrint-gh-pages")
Error: Could not find package root.

install_git("https://github.com/rowanwins/leaflet-easyPrint")
install_git("https://github.com/rowanwins/leaflet-easyPrint")
Downloading git repo https://github.com/rowanwins/leaflet-easyPrint
Error: Does not appear to be an R package (no DESCRIPTION)

devtools::install_github("rowanwins/leaflet-easyPrint")
Error: HTTP error 404.
No commit found for the ref master

Rate limit remaining: 59/60
Rate limit reset at: 2019-04-04 19:57:05 UTC

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

看着这个包,确实没有“ master”:分支被称为“ v2”,“ gh-pages”,...

因此,您可以尝试: devtools :: install_github(“ rowanwins / leaflet-easyPrint”,ref =“ v2”)