spectralGraphTopology icon indicating copy to clipboard operation
spectralGraphTopology copied to clipboard

misguided library() call breaks package installation

Open bastistician opened this issue 4 months ago • 0 comments

(@dppalomar: https://github.com/dppalomar/spectralGraphTopology does not accept issues, so submitting here)

install.packages("spectralGraphTopology") from CRAN gives

** byte-compile and prepare package for lazy loading
Error in library(CVXR) : there is no package called 'CVXR'
Error: unable to load R code in package 'spectralGraphTopology'
Execution halted
ERROR: lazy loading failed for package 'spectralGraphTopology'

The library(CVXR) call at the top of R/smoothGraphLearning.R

https://github.com/convexfi/spectralGraphTopology/blob/97eee40c8aa30cd62fa01b6e9e01e20197fc7940/R/smoothGraphLearning.R#L1

seems very strange and should not be needed.

bastistician avatar Oct 08 '24 06:10 bastistician