Skip to content

Commit a79ddb2

Browse files
committed
Substitute call
1 parent 63d1d18 commit a79ddb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r/src/altrep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ struct AltrepFactor : public AltrepVectorBase<AltrepFactor> {
572572

573573
static SEXP Duplicate(SEXP alt, Rboolean /* deep */) {
574574
// the representation integer vector
575-
SEXP dup = PROTECT(Rf_lazy_duplicate(Materialize(alt)));
575+
SEXP dup = PROTECT(Rf_shallow_duplicate(Materialize(alt)));
576576

577577
// additional attributes from the altrep
578578
SEXP atts = PROTECT(Rf_duplicate(ATTRIB(alt)));

0 commit comments

Comments
 (0)