[Rcpp-devel] Another 'Error: not compatible with requested type'
Dirk Eddelbuettel
edd at debian.org
Fri Aug 7 14:19:32 CEST 2015
On 7 August 2015 at 13:40, Fabio Tordini wrote:
| Hello,
| I already read the discussion about the issue in object, but I can't
| find a way out!
We can't either.
You supplied a screenful of email but __no reproducible code__ exhibiting an
error we can reproduce. Nobody can help you based on what you wrote here.
Dirk
| 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
|
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list