安装时错误安装包dplyr。包:缺少TRUE/FALSE所需的值。

时间:2021-10-06 14:07:05

I tried to install package dplyr but it always show the error:

我尝试安装软件包dplyr,但它总是显示错误:

Error in install.packages : missing value where TRUE/FALSE needed

Here is the console history:

这是控制台的历史:

> install.packages("dplyr")
also installing the dependency ‘BH’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/BH_1.60.0-2.zip'
Content type 'application/zip' length 15529281 bytes (14.8 MB)
downloaded 14.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/dplyr_0.5.0.zip'
Content type 'application/zip' length 2409178 bytes (2.3 MB)
downloaded 2.3 MB

Error in install.packages : missing value where TRUE/FALSE needed

Anyone have any ideas? Thanks in advance

谁有什么好主意吗?谢谢提前

4 个解决方案

#1


4  

I had this problem in R for Windows 3.4

我在Windows 3.4中遇到了这个问题。

  1. Go to the CRAN webpage and download and install the R 3.4.0 Patched Build for Windows
  2. 转到CRAN网页,下载并安装Windows 3.4.0补丁包。
  3. Run Rstudio as administrator.
  4. Rstudio作为管理员运行。
  5. Install the package as usual.
  6. 像往常一样安装包。

#2


1  

I tried changing my repository, and .libPaths variable, those didn't work. Simply rebooting my windows machine did the trick for me.

我尝试更改我的存储库,并且. libpath变量,这些都不起作用。简单地重启一下我的windows电脑就可以了。

#3


1  

I had the same problem in R3.4 version, it was solved by using

我在R3.4版本中遇到了同样的问题,它是通过使用解决的。

install.packages("tidyverse",dependencies = TRUE,repos = "http://cran.us.r-project.org")

#4


0  

I had the same problem where my rsession.exe was essentially being blocked by my Advanced System Care software from accessing this file index.html. When I clicked on index.html, I wasn't sent to any particular file just the base [This PC] folder home page on Windows 10. The error you had was present for me throughout 3.4.3, 3.4.3patched, and 3.2, so it was probably a problem I was dealing with that transcended the versions themselves.

我的rsession也有同样的问题。exe基本上被我的高级系统保护软件阻止了,因为它访问了这个文件index.html。当我点击索引。html,我没有被发送到任何特定的文件仅仅是在Windows 10的基础[这个PC]文件夹的主页。您在3.4.3、3.4.3补丁和3.2中所犯的错误,可能是我正在处理的一个问题,超出了版本本身。

I don't know why exactly the access was really needed, but allowing it got rid of the problem for me.

我不知道为什么确实需要访问,但是允许它解决了我的问题。

#1


4  

I had this problem in R for Windows 3.4

我在Windows 3.4中遇到了这个问题。

  1. Go to the CRAN webpage and download and install the R 3.4.0 Patched Build for Windows
  2. 转到CRAN网页,下载并安装Windows 3.4.0补丁包。
  3. Run Rstudio as administrator.
  4. Rstudio作为管理员运行。
  5. Install the package as usual.
  6. 像往常一样安装包。

#2


1  

I tried changing my repository, and .libPaths variable, those didn't work. Simply rebooting my windows machine did the trick for me.

我尝试更改我的存储库,并且. libpath变量,这些都不起作用。简单地重启一下我的windows电脑就可以了。

#3


1  

I had the same problem in R3.4 version, it was solved by using

我在R3.4版本中遇到了同样的问题,它是通过使用解决的。

install.packages("tidyverse",dependencies = TRUE,repos = "http://cran.us.r-project.org")

#4


0  

I had the same problem where my rsession.exe was essentially being blocked by my Advanced System Care software from accessing this file index.html. When I clicked on index.html, I wasn't sent to any particular file just the base [This PC] folder home page on Windows 10. The error you had was present for me throughout 3.4.3, 3.4.3patched, and 3.2, so it was probably a problem I was dealing with that transcended the versions themselves.

我的rsession也有同样的问题。exe基本上被我的高级系统保护软件阻止了,因为它访问了这个文件index.html。当我点击索引。html,我没有被发送到任何特定的文件仅仅是在Windows 10的基础[这个PC]文件夹的主页。您在3.4.3、3.4.3补丁和3.2中所犯的错误,可能是我正在处理的一个问题,超出了版本本身。

I don't know why exactly the access was really needed, but allowing it got rid of the problem for me.

我不知道为什么确实需要访问,但是允许它解决了我的问题。