简体   繁体   English

在 R 中加载 Lime package 时出现错误“对象 'coef.cv.glmnet' 未由 'namespace:glmnet' 导出” -

[英]error “object ‘coef.cv.glmnet’ is not exported by 'namespace:glmnet' ” while loading Lime package in R -

I've successfully installed Lime (and glmnet) in R but when I try loading it i receive an error:我已经在 R 中成功安装了 Lime(和 glmnet),但是当我尝试加载它时,我收到一个错误:

> require(lime)
Loading required package: lime
Error: package or namespace load failed for ‘lime’:
 object ‘coef.cv.glmnet’ is not exported by 'namespace:glmnet'

Searched online and can't seem to find a solution for this.在网上搜索,似乎无法找到解决此问题的方法。 This is my sessioninfo()这是我的 sessioninfo()

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

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252 LC_NUMERIC=C                      
[5] LC_TIME=English_Australia.1252    

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

other attached packages:
[1] glmnet_3.0    Matrix_1.2-17

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.3       rstudioapi_0.10  magrittr_1.5     tidyselect_0.2.5 munsell_0.5.0    colorspace_1.4-1 lattice_0.20-38  R6_2.4.0         rlang_0.4.1     
[10] foreach_1.4.7    dplyr_0.8.3      tools_3.6.1      grid_3.6.1       gtable_0.3.0     iterators_1.0.12 lazyeval_0.2.2   assertthat_0.2.1 tibble_2.1.3    
[19] crayon_1.3.4     purrr_0.3.3      ggplot2_3.2.1    codetools_0.2-16 shape_1.4.4      glue_1.3.1       compiler_3.6.1   pillar_1.4.2     scales_1.0.0    
[28] pkgconfig_2.0.3 

I've updated all my packages.我已经更新了我所有的包。 glmnet loads successfully glmnet 加载成功

> library(glmnet)
Loaded glmnet 3.0

The recent major update of glmnet (which now does not export coef.cv.glmnet anymore) appears to have broken lime.最近对 glmnet 的重大更新(现在不再导出coef.cv.glmnet )似乎已经打破了石灰。 You can see errors with the same cause in the CRAN tests .您可以在CRAN 测试中看到具有相同原因的错误。 You can expect a fix by the package maintainer soon (or the package will be archived by CRAN).您可以期待 package 维护者尽快修复(或者 package 将由 CRAN 存档)。 See also this bug report and the answer by the maintainer :另请参阅此错误报告和维护者的回答

This is due to a recent breaking change in glmnet—lime will be updated soon to fix this这是由于 glmnet 最近发生了重大变化——lime 将很快更新以解决此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM