tomwenseleers / export

R package for streamlined export of graphs and data tables.
192 stars 35 forks source link

Having problem installing the "export" package #28

Closed Shaneyyj closed 4 years ago

Shaneyyj commented 4 years ago

Hi, thanks for the package~ I tried to install the package using the code as below

devtools::install_github("tomwenseleers/export")

And at the very end it shows:

* installing *source* package ‘export’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (export)

I thought the package has already installed, yet when I try to load it, I failed.

> library(export)
Registered S3 methods overwritten by 'broom':
  method             from
  augment.rowwise_df     
  augment.tbl_df         
  glance.rowwise_df      
  glance.tbl_df          
  tidy.rowwise_df        
  tidy.tbl_df            
错误: package or namespace load failed for ‘export’:
 loadNamespace()里算'broom'时.onLoad失败了,详细内容:
  调用: get0(oNam, envir = ns)
  错误: lazy-load database '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/backports/R/backports.rdb' is corrupt
此外: Warning messages:
1: In get0(oNam, envir = ns) : 重新评估被中断的许诺
2: In get0(oNam, envir = ns) : internal error -3 in R_decompress1

And here is my results of sessionInfo( ), I think this problem may associated with the R version. Since I used to install the package successfully in R version 3.5.

> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.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.6/Resources/lib/libRlapack.dylib

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

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

other attached packages:
[1] reshape2_1.4.3       canvasXpress_1.27.6  data.table_1.12.8   
[4] ggplot2_3.3.0        ggsignif_0.6.0       ggsci_2.9           
[7] dplyr_0.8.5          readxl_1.3.1         scatterplot3d_0.3-41

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6      lattice_0.20-38   tidyr_1.0.2      
 [4] prettyunits_1.1.1 ps_1.3.2          assertthat_0.2.1 
 [7] rprojroot_1.3-2   digest_0.6.25     utf8_1.1.4       
[10] R6_2.4.1          cellranger_1.1.0  plyr_1.8.6       
[13] backports_1.1.6   evaluate_0.14     pillar_1.4.3     
[16] gdtools_0.2.2     rlang_0.4.5       uuid_0.1-4       
[19] curl_4.3          rstudioapi_0.11   callr_3.4.3      
[22] flextable_0.5.9   rmarkdown_2.1     desc_1.2.0       
[25] labeling_0.3      devtools_2.2.2    stringr_1.4.0    
[28] munsell_0.5.0     compiler_3.6.3    xfun_0.12        
[31] pkgconfig_2.0.3   systemfonts_0.1.1 base64enc_0.1-3  
[34] pkgbuild_1.0.6    rvg_0.2.4         htmltools_0.4.0  
[37] tidyselect_1.0.0  tibble_3.0.0      fansi_0.4.1      
[40] crayon_1.3.4      withr_2.1.2       grid_3.6.3       
[43] nlme_3.1-144      gtable_0.3.0      lifecycle_0.2.0  
[46] magrittr_1.5      scales_1.1.0      zip_2.0.4        
[49] cli_2.0.2         stringi_1.4.6     farver_2.0.3     
[52] fs_1.3.2          remotes_2.1.1     testthat_2.3.2   
[55] xml2_1.3.1        generics_0.0.2    ellipsis_0.3.0   
[58] vctrs_0.2.4       openxlsx_4.1.4    stargazer_5.2.2  
[61] tools_3.6.3       glue_1.4.0        officer_0.3.8    
[64] purrr_0.3.3       processx_3.4.2    pkgload_1.0.2    
[67] yaml_2.2.1        colorspace_1.4-1  sessioninfo_1.1.1
[70] memoise_1.1.0     knitr_1.28        usethis_1.5.1  
cvanderaa commented 4 years ago

Thanks for giving our package a try!

I think the issue lies in the installation of the broom package. The error you see appears during the loading of that package, hence your session info does not contain it. Loading broom is required in order to use export (see the DESCRIPTION file).

What happens when you isolate the problem and only run library(broom)?

I would suggest you reinstall broom, check if you can load broom (make sure it appears in your sessionInfo) and then load export.

Shaneyyj commented 4 years ago

Thanks a lot! The problem was already solved after reinstall broom.