This is an automated email from the ASF dual-hosted git repository.
thisisnic pushed a commit to branch maint-22.0.0-r
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/maint-22.0.0-r by this push:
new a79ddb20a3 Substitute call
a79ddb20a3 is described below
commit a79ddb20a3d2ddb9ff151795e8abb8f6e66ec6d0
Author: Nic Crane <[email protected]>
AuthorDate: Sun Oct 26 09:18:58 2025 +0000
Substitute call
---
r/src/altrep.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/r/src/altrep.cpp b/r/src/altrep.cpp
index 4aaa26b5f1..bb91ca03c4 100644
--- a/r/src/altrep.cpp
+++ b/r/src/altrep.cpp
@@ -572,7 +572,7 @@ struct AltrepFactor : public AltrepVectorBase<AltrepFactor>
{
static SEXP Duplicate(SEXP alt, Rboolean /* deep */) {
// the representation integer vector
- SEXP dup = PROTECT(Rf_lazy_duplicate(Materialize(alt)));
+ SEXP dup = PROTECT(Rf_shallow_duplicate(Materialize(alt)));
// additional attributes from the altrep
SEXP atts = PROTECT(Rf_duplicate(ATTRIB(alt)));