【问题标题】:Can't load tidyverse library无法加载 tidyverse 库
【发布时间】:2017-05-28 23:28:20
【问题描述】:

刚刚将 R 和 RStudio 升级到

> version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          4.0                         
year           2017                        
month          04                          
day            21                          
svn rev        72570                       
language       R                           
version.string R version 3.4.0 (2017-04-21)
nickname       You Stupid Darkness

rstudio版本是

Version 1.0.143 – © 2009-2016 RStudio, Inc.

然后我安装 tidyverse 包

install.packages("tidyverse")

结果

trying URL 'https://dirichlet.mat.puc.cl/bin/windows/contrib/3.4/tidyverse_1.1.1.zip'
Content type 'application/zip' length 42211 bytes (41 KB)
downloaded 41 KB

package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\...\AppData\Local\Temp\Rtmp6vaNT1\downloaded_packages

一切正常。

现在,当尝试加载 tidyverse 库时:

> library("tidyverse")
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘cellranger’

失败。

我可以单独加载所有包,但由于某种原因不能加载 tidyverse 包。

【问题讨论】:

  • 首先要尝试:install.packages("cellranger").
  • 感谢@neilfws,问题解决了。很奇怪,因为我之前尝试过 dependency = TRUE 。再次感谢
  • 不要将解决方案编辑到问题中,请在下面留下答案。
  • 感谢@josliber,已添加答案

标签: r tidyverse


【解决方案1】:

解决方案是安装依赖项:

install.packages("cellranger")

(@neilfws 在 cmets 中回答)

【讨论】:

    【解决方案2】:

    这将解决您的问题

    install.packages('cellranger')
    install.packages('tidyverse', type = 'binary') 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-14
      • 2018-12-01
      相关资源
      最近更新 更多