asardaes / dtwclust

R Package for Time Series Clustering Along with Optimizations for DTW
https://cran.r-project.org/package=dtwclust
GNU General Public License v3.0
252 stars 29 forks source link

Failing to install on Ubuntu (17.10) #30

Closed eaurele closed 6 years ago

eaurele commented 6 years ago

Same isssue with install.packages() and remotes::install_github(). After compiling (with g++), I get:

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’, ‘svds.dsyMatrix’, ‘svds.function’ were declared in NAMESPACE but not found
Error in namespaceExport(ns, exports) : 
  undefined exports: eigs, eigs_sym, svds
asardaes commented 6 years ago

That seems like the RSpectra package is not installed correctly, can you reinstall it? I've had problems several times where a package installation fails without me noticing the error, and it sometimes leaves things inconsistent. Make sure all dependencies were installed correctly.

eaurele commented 6 years ago

Thanks Alexis, you spotted it! I had:

ERROR: failed to lock directory ‘/home/aurele/R/x86_64-pc-linux-gnu-library/3.4’ for modifying
Try removing ‘/home/aurele/R/x86_64-pc-linux-gnu-library/3.4/00LOCK-RSpectra’
Warning in install.packages :
  installation of package ‘RSpectra’ had non-zero exit status

I did remove the faulty directory, re-installed RSpectra, then dtwclust installation went fine.