软件包安装缺少 S3 方法

Package install missing S3 methods

我正在尝试安装 R 包 "dtwclust"。它最近在 6 个月前对我有用,但现在——可能是由于系统更新、R 更新或包更新——我收到以下错误消息:

install.packages("dtwclust")

...

** preparing package for lazy loading
Warning: S3 methods ‘eigs.matrix’, ‘eigs.dgeMatrix’, ‘eigs.dgCMatrix’, 
‘eigs.dgRMatrix’, ‘eigs.dsyMatrix’, ‘eigs.function’, 
‘eigs_sym.matrix’, ‘eigs_sym.dgeMatrix’, ‘eigs_sym.dgCMatrix’, 
‘eigs_sym.dgRMatrix’, ‘eigs_sym.function’, ‘svds.matrix’, 
‘svds.dgeMatrix’, ‘svds.dgCMatrix’, ‘svds.dgRMatrix’, m 
‘svds.dsyMatrix’, ‘svds.function’ were declared in NAMESPACE but not 
found
Error in namespaceExport(ns, exports) : 
undefined exports: eigs, eigs_sym, svds

我 运行 Ubuntu 18.04。我试过使用 dependencies = TRUE 参数,我试过重新安装 r-base。知道这些缺失的 S3 方法在哪里吗?谢谢!

您可能需要重新安装 RSpectra。请参阅 this for how to update packages after R upgrade, and coincidentally also this GitHub 问题。