【问题标题】:Error while loading tidyverse in RStudio在 RStudio 中加载 tidyverse 时出错
【发布时间】:2018-04-21 02:39:54
【问题描述】:

尝试在 RStudio 中加载 tidyverse 包时,我收到以下错误消息:

图书馆(tidyverse) 错误:“tidyverse”的包或命名空间加载失败: .onAttach 在“tidyverse”的 attachNamespace() 中失败,详细信息: 调用:空 错误:在 RStudio 中找不到函数 getThemeInfo

【问题讨论】:

  • 这是一个关于在 RStudio 中加载包时出错的问题,因此它需要 rstudio 标签。
  • 遇到了同样的错误。安装旧版本的 tidyverse 有助于解决问题: install.packages("cran.r-project.org/src/contrib/Archive/tidyverse/…", repos = NULL, type = "source")

标签: r rstudio tidyverse


【解决方案1】:

我遇到了完全相同的问题。按照@bart 的建议将 RStudio 更新到最新版本 (v. 1.1.383) 对我来说非常有效并解决了这个问题。

对于那些在 Ubuntu (16.04) 中工作的人,您可以通过

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

原帖链接: https://askubuntu.com/questions/862403/install-the-lastest-version-of-rstudio

【讨论】:

    【解决方案2】:

    我发现将 RStudio 升级到 1.1.383 版解决了我的问题,同时仍然运行最新版本的 tidyverse。

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题,wolfgang 的回答解决了它。我使用以下代码从 2017 年 1 月 27 日开始安装 tidyverse 1.1.1 版:

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

      【讨论】:

      • 谢谢你..!让我试试看。
      猜你喜欢
      • 2017-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-09
      • 2021-04-14
      • 2021-01-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多