简体   繁体   English

无法在 R 中安装 tidyverse 包。错误没有调用包

[英]Cannot install tidyverse package in R. Error there is no package called

I am attempting to install the package tidy verse in R studio and receiving these errors.我正在尝试在 R studio 中安装包tidy verse并收到这些错误。

> install.packages('tidyverse')
also installing the dependency ‘rstudioapi’

  There is a binary version available but the source version is later:
           binary source needs_compilation
rstudioapi  0.9.0   0.10             FALSE

trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/tidyverse_1.2.1.tgz'
Content type 'application/x-gzip' length 88754 bytes (86 KB)
==================================================
downloaded 86 KB


The downloaded binary packages are in
    /var/folders/kn/b21xc36111z157czpz0swc900000gn/T//RtmpeVGvVh/downloaded_packages
installing the source package ‘rstudioapi’

trying URL 'https://cran.rstudio.com/src/contrib/rstudioapi_0.10.tar.gz'
Content type 'application/x-gzip' length 61888 bytes (60 KB)
==================================================
downloaded 60 KB

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘assertthat’
Calls: time.to ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
Warning in install.packages :
  installation of package ‘rstudioapi’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/kn/b21xc36111z157czpz0swc900000gn/T/RtmpeVGvVh/downloaded_packages’

In addition I've attempted to install in base R and receive the same message.此外,我尝试在 base R 中安装并收到相同的消息。 I've gone to the temporary folders and unzipped the package and moved that over to the library folder.我已经转到临时文件夹并解压缩包并将其移到库文件夹中。 When I attempt library(assertthat) it gives me an error that there is not a valid package installed.当我尝试library(assertthat)它给我一个错误,提示没有安装有效的软件包。

I've successfully installed tidyverse before on this machine, but when trying to use it this time it told me it was not installed, so I've attempted to reïnstall it.我之前在这台机器上成功安装了tidyverse ,但是这次尝试使用它时它告诉我它没有安装,所以我试图重新安装它。

我删除了我的 .Rhistory、.Rdata 和 .Rprofile 文件,重新启动了 R 并且能够tidyverse地安装tidyverse

I restarted my computer and installed devtools using install.packages("devtools") .我重新启动了计算机并使用install.packages("devtools")安装了 devtools。

After that I made sure to put Rtools on the PATH , simply following the instructions here: Using Rtools40 on Windows之后,我确保将 Rtools 放在 PATH 上,只需按照此处的说明进行操作:在 Windows 上使用 Rtools40

Afterwards, I was able to install tidyverse using install.packages("tidyverse") .之后,我能够使用install.packages("tidyverse")安装 tidyverse。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 库中的错误(tidyverse):没有名为&#39;tidyverse&#39;的包 - Error in library(tidyverse) : there is no package called ‘tidyverse’ 未能安装kernlab软件包R. - Failure to install kernlab package R. R 4,tidyverse 安装问题,没有 httr package - R 4, tidyverse install issue, no httr package 无法在 jupyter 中为 r kernel 安装 tidyverse package - Unable to install tidyverse package for r kernel in jupyter 无法在r中安装rcompanion软件包。 R版本3.4.3 - Can not install rcompanion package in r. R version 3.4.3 尝试加载 tidyverse 但我遇到“&gt; library(tidyverse) 库中的错误 (tidyverse):没有 package 称为 'tidyverse'” - tried to load tidyverse but I'm met with “> library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’” 错误:package 或“tidyverse”的命名空间加载失败,没有 package 称为“reprex” - Error: package or namespace load failed for ‘tidyverse’ there is no package called ‘reprex’ R错误-无法从tidyverse加载包&#39;colorspace&#39; - R error - package 'colorspace' not loading from tidyverse 错误:package 或“tidyverse”的命名空间加载失败,没有名为“rlang”的 package - Error: package or namespace load failed for “tidyverse” there is no package called “rlang” 在 R 中安装 package dplyr 时出错。install.packages 出错:需要 TRUE/FALSE 的地方缺少值 - Error when install package dplyr in R. Error in install.packages : missing value where TRUE/FALSE needed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM