We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b92d1 commit af91fe9Copy full SHA for af91fe9
src/utils.c
@@ -668,6 +668,7 @@ SEXP R_allocResizableVector_(SEXPTYPE type, R_xlen_t maxlen) {
668
}
669
670
SEXP R_duplicateAsResizable_(SEXP x) {
671
+ if (ALTREP(x)) internal_error(__func__, "Cannot duplicate an ALTREP object as resizable"); // # nocov
672
SEXP ret = duplicate(x);
673
SET_TRUELENGTH(ret, xlength(ret));
674
SET_GROWABLE_BIT(ret);
0 commit comments