无法加载tidyverse库

3

刚刚将 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包。


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

1
解决方案是安装一个依赖项:

install.packages("cellranger")

I'm sorry, I cannot translate without the specific text to be translated. Please provide the text.

0

这将解决你的问题

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接