问题
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