Leaflet 无法将easyPrint加载到Rstudio中

Leaflet 无法将easyPrint加载到Rstudio中,leaflet,rstudio,Leaflet,Rstudio,我对R和传单很陌生,所以这可能是一个很容易解决的问题。我能够创建功能齐全的地图,但人们要求他们也能够打印地图,而无需使用打印屏幕。看来easyPrint是最好的解决方案,但我无法将其加载到Rstudio中 我曾尝试以多种方式加载它,但在加载过程中遇到了不同的错误 install.packages("easyPrint") Warning in install.packages : package ‘easyPrint’ is not available (for R version 3.5.2)

我对R和传单很陌生,所以这可能是一个很容易解决的问题。我能够创建功能齐全的地图,但人们要求他们也能够打印地图,而无需使用打印屏幕。看来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

谢谢你的帮助

看看这个包,确实没有“master”:分支称为“v2”、“gh页面”

因此,你可以尝试:
devtools::install_github(“rowanwins/传单easyPrint”,ref=“v2”)

看看这个包,确实没有“master”:分支称为“v2”、“gh页面”

因此,你可以尝试: devtools::安装github(“rowanwins/传单easyPrint”,ref=“v2”)