RcppML icon indicating copy to clipboard operation
RcppML copied to clipboard

Expecting a single value: [extent=0]

Open LefterisZ opened this issue 1 year ago • 2 comments

Hello, I am getting the below error when updating RcppML from 0.3.7 to the current GitHub release.

The error arises when using either Rcpp_nmf_dense or Rcpp_nmf_sparse. It seems related to C++ since both functions are calling C++ code internally which I cannot figure out since my C++ knowledge is limited to non-existent!

I am using RcppML in one of my packages which will be published soon. Although I will revert to using the 0.3.7 version, where the error is not present, I would love to use and incorporate the latest version of RcppML with all the extra functionality it has!

I tried it even with a random 20x5 matrix: A <- matrix(rnorm(100), ncol = 5, nrow = 20)

The Error:

<error/rlang_error>
Error:
! Expecting a single value: [extent=0].
Caused by error:
! Expecting a single value: [extent=0].
---
Backtrace:
    ▆
 1. └─RcppML::nmf(data = A, k = 2, maxit = 250, seed = 1)
 2.   └─RcppML:::Rcpp_nmf_dense(...)

LefterisZ avatar May 30 '24 12:05 LefterisZ

The same problem

Yunuuuu avatar Jun 06 '24 17:06 Yunuuuu

This problem occurred to me as well, when running RcppML::nmf() Try to load package RcppML and run nmf() function:

library("RcppML")
model <- nmf()

Don't know why?

florekem avatar Jul 11 '24 13:07 florekem

This also occured to me when using RcppML::project(w, sn.count).

Image

jakob-koenig avatar Nov 26 '25 14:11 jakob-koenig