[Rcpp-devel] Another 'Error: not compatible with requested type'
Fabio Tordini
tordini at di.unito.it
Fri Aug 7 13:40:17 CEST 2015
Hello,
I already read the discussion about the issue in object, but I can't
find a way out!
That problem came out all of a sudden, in a function that has always
worked and has not been modified so far.
I describe the problem here. if more code might help, I'll provide it.
I have an R function named 'NormaliseEdges', where I set up variables
and objects and then call:
retEdges <- runNormalisation(miniEdges, fileSAM, numWrks, edgesProb, grain)
the function called is a c++ function defined as:
// [[Rcpp::export]]
SEXP runNormalisation(DataFrame mEd, std::string samfile, int nwrks,
float e_lm, int chunk)
never had any problems with that.
today it started to crash with the above error.
Weirdly, this happens only when I call the R function, like:
NormaliseEdges(g.Edges, file.SAM)
Error: not compatible with requested type
Called from: runNormalisation(miniEdges, fileSAM, numWrks, edgesProb, grain)
if I simply call the c++ function it works fine
retEdges <- runNormalisation(miniEdges, file.SAM, 1, 0, 0)
I double-checked that 'miniEdges' is a data.frame (and it is); also, it
has always been.
I fear this might have something to do with other modifications in other
files, that somehow affected the whole? is it possible?
I don't see any other error!
Regards,
Fabio
More information about the Rcpp-devel
mailing list