簡體   English   中英

在 R 中安裝 devtools 的問題

[英]Issues installing devtools in R

嘗試安裝 devtools,但不斷出現錯誤

Error: object 'glue_collapse' is not exported by 'namespace:glue' ERROR: lazy loading failed for package 'usethis'

以下是完整的錯誤代碼:

> install.packages('devtools', repos='http://cran.rstudio.com/')
also installing the dependency ‘usethis’


  There are binary versions available but
  the source versions are later:
         binary source needs_compilation
usethis   1.4.0  1.5.0             FALSE
devtools 1.13.6  2.0.2             FALSE

installing the source packages ‘usethis’, ‘devtools’

trying URL 'http://cran.rstudio.com/src/contrib/usethis_1.5.0.tar.gz'
Content type 'application/x-gzip' length 393903 bytes (384 KB)
==================================================
downloaded 384 KB

trying URL 'http://cran.rstudio.com/src/contrib/devtools_2.0.2.tar.gz'
Content type 'application/x-gzip' length 388141 bytes (379 KB)
==================================================
downloaded 379 KB

Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/Los_Angeles'
* installing *source* package ‘usethis’ ...
** package ‘usethis’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error : object ‘glue_collapse’ is not exported by 'namespace:glue'
ERROR: lazy loading failed for package ‘usethis’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/usethis’
Warning in install.packages :
  installation of package ‘usethis’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
  unknown timezone 'zone/tz/2018i.1.0/zoneinfo/America/Los_Angeles'
ERROR: dependency ‘usethis’ is not available for package ‘devtools’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/devtools’
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/6m/np7rbj6d6hv6xf8y_9x5pq000000gn/T/Rtmp8PDiFb/downloaded_packages’

我已經安裝了tidyverse ,其中包含glue包,但仍然遇到glue_collapse問題。 此外,是否可以關閉延遲加載來解決“usethis”依賴問題? 試過搜索方法,但沒有成功的方法。

添加我的原始評論作為標記此已解決的答案。 原來我需要單獨安裝 glue 包,然后修復了 usethis 問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM