急!请求帮忙!无法打开压缩文件,可能是因为'No such file or directory'

chen080103 |浏览5001次
2020/02/17 15:07
> install.packages("devtools")WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/Installing package into ‘C:/Users/chen080103/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)also installing the dependencies ‘processx’, ‘rex’, ‘prettyunits’, ‘xopen’, ‘brew’, ‘commonmark’, ‘purrr’, ‘usethis’, ‘callr’, ‘covr’, ‘desc’, ‘DT’, ‘ellipsis’, ‘git2r’, ‘memoise’, ‘pkgbuild’, ‘pkgload’, ‘rcmdcheck’, ‘remotes’, ‘roxygen2’, ‘rstudioapi’, ‘rversions’, ‘sessioninfo’
  There are binary versions
  available but the source
  versions are later:
        binary source
callr    3.4.1  3.4.2
remotes  2.1.0  2.1.1
        needs_compilation
callr               FALSE
remotes             FALSE试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/processx_3.4.2.zip'Content type 'application/zip' length 428198 bytes (418 KB)downloaded 418 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/rex_1.1.2.zip'Content type 'application/zip' length 124011 bytes (121 KB)downloaded 121 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/prettyunits_1.1.1.zip'Warning in install.packages :
  InternetOpenUrl失败:’操作超时'Error in download.file(url, destfile, method, mode = "wb", ...) : 
  无法打开URL'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/prettyunits_1.1.1.zip'此外: Warning message:In download.file(mirrors_csv_url, destfile = mirrors_csv, quiet = TRUE) :  downloaded length 0 != reported length 16926Warning in install.packages :
  download of package ‘prettyunits’ failed试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/xopen_1.0.0.zip'Content type 'application/zip' length 24737 bytes (24 KB)downloaded 24 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/brew_1.0-6.zip'Content type 'application/zip' length 113871 bytes (111 KB)downloaded 111 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/commonmark_1.7.zip'Content type 'application/zip' length 266274 bytes (260 KB)downloaded 260 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/purrr_0.3.3.zip'Content type 'application/zip' length 426257 bytes (416 KB)downloaded 416 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/usethis_1.5.1.zip'Content type 'application/zip' length 928199 bytes (906 KB)downloaded 906 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/covr_3.4.0.zip'Content type 'application/zip' length 300744 bytes (293 KB)downloaded 293 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/desc_1.2.0.zip'Content type 'application/zip' length 288817 bytes (282 KB)downloaded 282 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/DT_0.12.zip'Content type 'application/zip' length 1550476 bytes (1.5 MB)downloaded 620 KBWarning in install.packages :
  downloaded length 634880 != reported length 1550476试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/ellipsis_0.3.0.zip'Content type 'application/zip' length 44620 bytes (43 KB)downloaded 43 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/git2r_0.26.1.zip'Content type 'application/zip' length 2893670 bytes (2.8 MB)downloaded 492 KBWarning in install.packages :
  downloaded length 503808 != reported length 2893670试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/memoise_1.1.0.zip'Content type 'application/zip' length 36839 bytes (35 KB)downloaded 35 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/pkgbuild_1.0.6.zip'Content type 'application/zip' length 137727 bytes (134 KB)downloaded 134 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/pkgload_1.0.2.zip'Content type 'application/zip' length 156965 bytes (153 KB)downloaded 153 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/rcmdcheck_1.3.3.zip'Content type 'application/zip' length 135243 bytes (132 KB)downloaded 132 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/roxygen2_7.0.2.zip'Content type 'application/zip' length 1145728 bytes (1.1 MB)downloaded 1.1 MB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/rstudioapi_0.11.zip'Content type 'application/zip' length 282204 bytes (275 KB)downloaded 275 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/rversions_2.0.1.zip'Content type 'application/zip' length 68634 bytes (67 KB)downloaded 67 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/sessioninfo_1.1.1.zip'Content type 'application/zip' length 47002 bytes (45 KB)downloaded 45 KB试开URL’https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/devtools_2.2.1.zip'Content type 'application/zip' length 342825 bytes (334 KB)downloaded 334 KBpackage ‘processx’ successfully unpacked and MD5 sums checked
package ‘rex’ successfully unpacked and MD5 sums checked
package ‘xopen’ successfully unpacked and MD5 sums checked
package ‘brew’ successfully unpacked and MD5 sums checked
package ‘commonmark’ successfully unpacked and MD5 sums checked
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘usethis’ successfully unpacked and MD5 sums checked
package ‘covr’ successfully unpacked and MD5 sums checked
package ‘desc’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  从zip文件中抽取1时出了错
Warning in install.packages :
  无法打开压缩文件'DT/DESCRIPTION',可能是因为'No such file or directory'
Error in install.packages : 无法打开链结Loading required package: sp> > library(devtools)Error in library(devtools) : 不存在叫‘devtools’这个名字的程辑包> getwd()[1] "C:/Users/chen080103/Documents"> .libPaths()[1] "C:/Users/chen080103/Documents/R/win-library/3.6"
[2] "C:/Program Files/R/R-3.6.2/library"


收藏关注
全部回答(0)
0人关注该问题
 加载中...