为什么devtools :: document失败,并显示不清楚的C ++错误消息?

时间:2018-11-22 18:38:14

标签: r build

我有一个可以使用devtools::build_vignettes()构建的小插图,但是当我尝试构建源包(RStudio / Build / build源包)时,它在执行devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette'))时失败,并显示以下错误消息:

R(32119,0x7fff7437f000) malloc: *** error for object 0x7fff74dc0c30: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Exited with status 6.

该软件包使用Rcpp,但我绝对不是Cpp的专家,也不了解发生了什么。我可以毫无问题地在本地使用该软件包。

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0        rstudioapi_0.8    knitr_1.20        magrittr_1.5      usethis_1.4.0     devtools_2.0.1   
 [7] pkgload_1.0.2     R6_2.3.0          rlang_0.3.0.1     tools_3.5.1       pkgbuild_1.0.2    sessioninfo_1.1.1
[13] cli_1.0.1         withr_2.1.2       htmltools_0.3.6   remotes_2.0.2     yaml_2.2.0        assertthat_0.2.0 
[19] digest_0.6.18     rprojroot_1.3-2   crayon_1.3.4      processx_3.2.0    callr_3.0.0       clisymbols_1.2.0 
[25] base64enc_0.1-3   fs_1.2.6          ps_1.2.1          evaluate_0.12     glue_1.3.0        memoise_1.1.0    
[31] rmarkdown_1.10    compiler_3.5.1    desc_1.2.0        backports_1.1.2   prettyunits_1.0.2

0 个答案:

没有答案