Skip to content

better error messages #184

Closed
Closed
@ggrothendieck

Description

@ggrothendieck

There are a number of places where Rcpp can fail because TYPEOF(x) does not equal RTYPE. Since both of these are known at the point that the error is given it would help if these were displayed, e.g. rather than just "some message" use: std:string("some message TYPEOF(x): ") + CHAR(Rf_type2str(TYPEOF(x))) + " RTYPE: " + CHAR(Rf_type2str(RTYPE))
At least that will give some bit of clue as to what the problem might be.

Any other info that might be added to the error message to help locate the problem could be helpful too.

This applies to RcppEigen too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions