Error while loading tidyverse in RStudio

こ雲淡風輕ζ 提交于 2021-02-07 20:31:49

问题


When trying to load the tidyverse package in RStudio, I get the following error message:

library(tidyverse) Error: package or namespace load failed for ‘tidyverse’: .onAttach failed in attachNamespace() for 'tidyverse', details: call: NULL error: Function getThemeInfo not found in RStudio


回答1:


I found that upgrading RStudio to version 1.1.383 resolved the problem for me, while still running the latest version of tidyverse.




回答2:


I had the same issue, and wolfgang's answer solved it. I used the following code to install tidyverse version 1.1.1 from 2017-01-27:

    require(devtools)
    install_version("tidyverse", version = "1.1.1", repos = "http://cran.us.r-project.org")



回答3:


I was having exactly the same problem. Updating RStudio to the latest version (v. 1.1.383) as @bart suggested worked perfectly for me and solved the issue.

For those working in Ubuntu (16.04), you can update RStudio by

wget --tries=3 --timeout=120 https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb
sudo dpkg -i rstudio-*-amd64.deb

Link to original post: https://askubuntu.com/questions/862403/install-the-lastest-version-of-rstudio



来源:https://stackoverflow.com/questions/47179213/error-while-loading-tidyverse-in-rstudio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!