[英]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.