Skip to content

Commit

Permalink
Add case for raw vector
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 1, 2023
1 parent 9bc3c07 commit a749121
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coerce.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ void cant_coerce(SEXP from, SEXP to, int i) {
case LGLSXP:
to_friendly = "a logical";
break;
case RAWSXP:
to_friendly = "a raw vector";
break;
default:
to_friendly = Rf_type2char(TYPEOF(to));
}
Expand Down

0 comments on commit a749121

Please sign in to comment.