Error in Penalty_weights.R
Line 172 sparse = ifelse(class(X)[1] %in% c("dgCMatrix"), TRUE, NULL) results in an error when FALSE. Similar example: ifelse(is.matrix(1:10), TRUE, NULL)
Line 172 sparse = ifelse(class(X)[1] %in% c("dgCMatrix"), TRUE, NULL) results in an error when FALSE. Similar example: ifelse(is.matrix(1:10), TRUE, NULL)