错误devtools :: check-.onLoad在loadNamespace()中对于“支柱”失败

时间:2019-09-13 14:03:37

标签: r build devtools vctrs

我正在构建一个R包,并在使用devtools :: check()测试该包时,测试到达安装阶段时出现错误,提示:


    Error: .onLoad failed in loadNamespace() for 'pillar', details:
      call: utils::packageVersion("vctrs")
      error: there is no package called 'vctrs'
    Execution halted
    ERROR: lazy loading failed for package

我的描述文件中没有提到支柱和vctrs,因此它们必须是我所依赖的其他软件包的依赖。支柱和vctrs都已安装,我也尝试过重新安装它们。它们存储在第一个.libPath条目中。我尝试按照mfox9 here的建议从github安装支柱,但这对我来说失败了,给出了以下错误:


    > devtools::install_github("r-lib/pillar")
    Downloading GitHub repo r-lib/pillar@master
    √  checking for file 'C:\Users\DESCRIPTION' (337ms)
    -  preparing 'pillar': (664ms)
    √  checking DESCRIPTION meta-information ... 
    -  installing the package to process help pages
    -  checking for LF line-endings in source and make files and shell scripts (8.5s)
    -  checking for empty or unneeded directories
    -  building 'pillar_1.4.2.9001.tar.gz'

    Installing package into ‘Z:/’
    (as ‘lib’ is unspecified)
    The filename, directory name, or volume label syntax is incorrect.
    Error: Failed to install 'pillar' from GitHub:
      (converted from warning) installation of package ‘C:/Users/Temp/RtmpgjFfZl/file32586b634e28/pillar_1.4.2.9001.tar.gz’ had non-zero exit status

(注意:z:/是我正确的R库地址)

有人可以帮忙吗?

´´´

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 15063)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] pillar_1.4.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2        rstudioapi_0.10   magrittr_1.5      usethis_1.5.1    
 [5] devtools_2.2.0    pkgload_1.0.2     R6_2.4.0          rlang_0.4.0      
 [9] tools_3.6.1       pkgbuild_1.0.5    DT_0.8            packrat_0.5.0    
[13] sessioninfo_1.1.1 cli_1.1.0         withr_2.1.2       remotes_2.1.0    
[17] htmltools_0.3.6   ellipsis_0.2.0.1  assertthat_0.2.1  digest_0.6.20    
[21] rprojroot_1.3-2   crayon_1.3.4      processx_3.4.1    callr_3.3.1      
[25] fs_1.3.1          htmlwidgets_1.3   ps_1.3.0          curl_4.0         
[29] testthat_2.2.1    glue_1.3.1        memoise_1.1.0     compiler_3.6.1   
[33] desc_1.2.0        backports_1.1.4   prettyunits_1.0.2

´´´

0 个答案:

没有答案