简体   繁体   English

在 R 中安装 package dplyr 时出错。install.packages 出错:需要 TRUE/FALSE 的地方缺少值

[英]Error when install package dplyr in R. Error in install.packages : missing value where TRUE/FALSE needed

I tried to install package dplyr but it always show the error:我尝试安装 package 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提前致谢

I had this problem in R for Windows 3.4 我在R for Windows 3.4中遇到了这个问题

  1. Go to the CRAN webpage and download and install the R 3.4.0 Patched Build for Windows 转到CRAN网页,下载并安装适用于WindowsR 3.4.0 Patched Build
  2. Run Rstudio as administrator. 以管理员身份运行Rstudio。
  3. Install the package as usual. 像往常一样安装包。

It's a bit weird, but it worked for me. 这有点奇怪,但它对我有用。

Just closing the installed packages win-library folder while installing package resolved the mentioned error. 在安装包时关闭已安装的包win-library文件夹解决了上述错误。

I tried changing my repository, and .libPaths variable, those didn't work. 我尝试更改我的存储库和.libPaths变量,这些都不起作用。 Simply rebooting my windows machine did the trick for me. 只需重新启动我的Windows机器就可以了。

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

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

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 . 我遇到了同样的问题,我的高级系统护理软件基本上阻止了我的rsession.exe访问此文件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. 当我点击index.html ,我没有被发送到任何特定文件,只是在Windows 10的基础[This 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. 我不知道为什么确实需要访问权限,但允许它为我解决问题。

Like @m.nette-van-zyl, this issue disappear when I disabled Avast (don't know why, though).就像@m.nette-van-zyl 一样,当我禁用 Avast 时,这个问题就消失了(虽然不知道为什么)。

在安装软件包时禁用我的 Avast 防病毒软件 10 分钟解决了我的问题。

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

相关问题 R包“ bfast”错误:缺少需要TRUE / FALSE的值 - R package `bfast` error: missing value where TRUE/FALSE needed mlogit 中的错误 package R 缺少需要 TRUE/FALSE 的值 - Error in mlogit package R missing value where TRUE/FALSE needed goseq package 在 R “缺少 TRUE/FALSE 需要的值”错误 - goseq package in R “missing value where TRUE/FALSE needed” error R: install.packages 错误 - R: install.packages error 在R中运行glmnet包,得到错误“缺少需要TRUE / FALSE的值”,可能是由于缺少值? - Running glmnet package in R, getting error “missing value where TRUE/FALSE needed”, maybe due to missing values? R skmeans软件包-此错误来自何处:“在需要TRUE / FALSE的地方缺少值” - R skmeans package - where does this error come from: “missing value where TRUE/FALSE needed” R中的清洗数据:缺少需要TRUE / FALSE的错误值 - Cleaning data in R : Error missing value where TRUE/FALSE needed if(!all(o)){错误:需要TRUE / FALSE的缺少值R - Error in if (!all(o)) { : missing value where TRUE/FALSE needed R 在[R]中得到错误 - 缺少值,需要TRUE / FALSE - getting error in [R] - missing value where TRUE/FALSE needed 在r中插入排序,错误为“缺少需要TRUE / FALSE的值” - Insertion sort in r with error “missing value where TRUE/FALSE needed”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM