R 4.0.0升级后,传单地图在R Studio中不起作用 [英] Leaflet maps not working in R Studio after R 4.0.0 upgrade

查看:90
本文介绍了R 4.0.0升级后,传单地图在R Studio中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前几天,我更新了计算机(R,R Tools和RStudio),并且传单停止工作.

I updated my computer the other day (R, R Tools, and RStudio), and leaflet stopped working.

当我在RGUI中运行此示例时,速度非常慢,但最终它会在浏览器中打开网页.

When I run this example in the RGUI it's very slow, but eventually it opens a web page in a browser.

当我在R Studio中运行它时,它非常慢,最终命令完成了,但是视图"选项卡中什么都没有出现,并且R Studio继续使用越来越多的内存,直到我强制杀死它为止.

When I run it in R Studio it's very slow, eventually the command finishes but nothing appears in the "view" tab, and R Studio keeps using more and more memory until I force kill it.

library(leaflet)

leaflet() %>% addTiles() %>% addMarkers(lng=174.768, lat=-36.852, popup="R")

我已经尝试了一些方法,并从github安装了传单,但是没有太多要解决的问题.

I've tried a few things with my path, and installing leaflet from github, but there's not much to troubleshoot.

> sessionInfo()
R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 15063)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.0 tools_4.0.0

编辑2020-05-09:

我恢复到R 3.6.2,不再遇到问题.幸运的是,我可以在R Studio的选项中进行更改,因此如有必要,可以切换回4.0.

Edit 2020-05-09:

I reverted to R 3.6.2 and am no longer having the issue. Fortunately I could change it in R Studio's options so I can switch back to 4.0 if that becomes necessary.

我没有将其添加为答案,因为它可以解决.

I'm not adding this as an answer because it's a work around.

推荐答案

Rstudio查看器问题已经解决.

Rstudio viewer problem has been adressed.

Rstudio开发人员:

Rstudio developer :

这是R 4.0.0的一个已知问题(完全),已由R团队在R 4.0.2中修复.

This is a known issue with R 4.0.0 (exactly) that has been fixed by the R team in R 4.0.2.

在此处查看完整文章: https://community.rstudio.com/t/rstudio-viewer-session-viewhtml-not-found/75592

see full post here: https://community.rstudio.com/t/rstudio-viewer-session-viewhtml-not-found/75592

这篇关于R 4.0.0升级后,传单地图在R Studio中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆