r - How to install and load dplyr without errors?
问题描述
I am currently practicing R programming through swirl package. And I am stuck at the installation steps in one of the courses with the following error.
| This lesson requires the ‘dplyr’ package. Would you like me to install it for
| you now?
1: Yes
2: No
Selection: 1
| Trying to install package ‘dplyr’ now...
package ‘dplyr’ successfully unpacked and MD5 sums checked
| Could not install package ‘dplyr’!
|
| | 0%Error in seq.default(0, 1, length.out = nrow(e$les)) :
argument 'length.out' must be of length 1
| Leaving swirl now. Type swirl() to resume.
Even if I try to install it manually and it succeeds I am unable to load it because of following error.
> library(dplyr)
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.5 is already loaded, but >= 0.4.6 is required
I have tried to remove, reinstall and update the packages. Nothing seems to work. Please Help
解决方案
任何一个
install.packages("dplyr", dependencies = TRUE)
或者回去先做
install.pacakges("rlang")
然后安装. _dplyr
欢迎来到包裹地狱。这是你的班卓琴。昨晚我必须安装 4 层深的软件包tidyverse
才能加载所有内容。这很乏味但可行。
推荐阅读
- google-maps - 拖入 vue2-google-map 后如何获取标记位置?
- ssl - SSL 证书过期 | Plesk 中的错误
- r - 将空间点数据框叠加到栅格上后如何保存
- http - 如何使用会话在 http 和 https laravel 5.1 之间保持活动状态
- python - Pickle:存储变量的内容
- c - 单行语句
- php - 我正在寻找复制另一个网站的一部分并将其粘贴到我的
- r - 如何检查矩阵中的每个值是否介于 R 中其他两个矩阵中的对应值之间?
- php - php 和 mariadb 不能正常工作
- java - org.openqa.selenium.WebDriverException:使用 Selenium Java 和 webdriver 时连接被拒绝(Linux headless with Xvfb)