我对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谢谢你的帮助!
发布于 2019-05-03 16:17:22
看看这个包,确实没有“主控”:分支被称为"v2“、"gh-pages”、……
你可以试试: devtools::install_github("rowanwins/leaflet-easyPrint",ref="v2")
https://stackoverflow.com/questions/55523270
复制相似问题