问题描述
我正在尝试更新tidyverse
dplyr
包以使用功能across
,如对this question的回答所示。但是我收到以下错误。有帮助吗?
> devtools::install_github("tidyverse/dplyr")
Downloading GitHub repo tidyverse/dplyr@master
from URL https://api.github.com/repos/tidyverse/dplyr/zipball/master
Installing dplyr
'/usr/local/app/conda-R/conda-R-5.1/lib/R/bin/R' --no-site-file --no-environ \
--no-save --no-restore --quiet CMD INSTALL \
'/tmp/Rtmp4NOex8/devtools2bf3846ae3693/tidyverse-dplyr-0841f52' \
--library='/export/projects/AAA/code/R/pkg_library' \
--install-tests
ERROR: dependencies ‘ellipsis’,‘generics’,‘lifecycle’,‘vctrs’ are not available for package ‘dplyr’
* removing ‘/export/projects/AAA/code/R/pkg_library/dplyr’
Installation failed: Command failed (1)
我尝试添加选项dependencies = TRUE
,但结果相同。
> devtools::install_github("tidyverse/dplyr",dependencies = TRUE)
Downloading GitHub repo tidyverse/dplyr@master
from URL https://api.github.com/repos/tidyverse/dplyr/zipball/master
Installing dplyr
'/usr/local/app/conda-R/conda-R-5.1/lib/R/bin/R' --no-site-file --no-environ \
--no-save --no-restore --quiet CMD INSTALL \
'/tmp/Rtmp4NOex8/devtools2bf38103e4ad6/tidyverse-dplyr-0841f52' \
--library='/export/projects/AAA/code/R/pkg_library' \
--install-tests
ERROR: dependencies ‘ellipsis’,‘vctrs’ are not available for package ‘dplyr’
* removing ‘/export/projects/jtamayo_Energy_Col_project/code/R/pkg_library/dplyr’
Installation failed: Command failed (1)
-------更新
鉴于以下评论,我重新安装了dplyr
,但是我得到的最新版本是0.7.6
,而不是1.1
。如何获取最新版本?我尝试了install.packages("dplyr",dependencies = TRUE,version ="1.1")
Information on package ‘dplyr’
Description:
Type: Package
Package: dplyr
Title: A Grammar of Data Manipulation
Version: 0.7.6
Authors@R: c( person("Hadley","Wickham","hadley@rstudio.com",c("aut","cre"),comment =
c(ORCID = "0000-0003-4757-117X")),person("Romain","Fran\u00e7ois",role = "aut",comment = c(ORCID =
"0000-0002-2444-4226")),person("Lionel","Henry",role = "aut"),person("Kirill","M\u00fcller",role
= "aut",comment = c(ORCID =
"0000-0002-1416-3412")),person("RStudio",role =
c("cph","fnd")) )
Description: A fast,consistent tool for working with data frame
like objects,both in memory and out of memory.
License: MIT + file LICENSE
URL: http://dplyr.tidyverse.org,https://github.com/tidyverse/dplyr
BugReports: https://github.com/tidyverse/dplyr/issues
Depends: R (>= 3.1.2)
Imports: assertthat (>= 0.2.0),bindrcpp (>= 0.2.0.9000),glue (>= 1.1.1),magrittr (>= 1.5),methods,pkgconfig (>= 2.0.1),R6 (>= 2.2.2),Rcpp (>=
0.12.15),rlang (>= 0.2.0),tibble (>= 1.3.1),tidyselect (>= 0.2.3),utils
Suggests: bit64 (>= 0.9.7),callr,covr (>= 3.0.1),DBI (>=
0.7.14),dbplyr (>= 1.2.0),dtplyr (>= 0.0.2),ggplot2 (>= 2.2.1),hms (>= 0.4.1),knitr (>=
1.19),Lahman (>= 3.0-1),lubridate,MASS,mgcv (>=
1.8.23),microbenchmark (>= 1.4.4),nycflights13
(>= 0.2.2),rmarkdown (>= 1.8),RMySQL (>=
0.10.13),RPostgreSQL (>= 0.6.2),RSQLite (>= 2.0),testthat (>= 2.0.0),withr (>= 2.1.1)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)