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 a03c2a2 commit 24bce5eCopy full SHA for 24bce5e
2 files changed
ChangeLog
@@ -1,3 +1,7 @@
1
+2026-04-03 Dirk Eddelbuettel <edd@debian.org>
2
+
3
+ * inst/include/Rcpp/proxy/NamesProxy.h (set): Only set non-null values
4
5
2026-04-01 Mattias Ellert <mattias.ellert@physics.uu.se>
6
7
* inst/discovery/cxx0x.R: Set execute permissions for script
inst/include/Rcpp/proxy/NamesProxy.h
@@ -1,5 +1,5 @@
// Copyright (C) 2013 - 2025 Romain François
-// Copyright (C) 2026 Romain François and Iñaki Ucar
+// Copyright (C) 2026 Romain François, Iñaki Ucar and Dirk Eddelbuettel
//
// This file is part of Rcpp.
@@ -48,7 +48,8 @@ class NamesProxyPolicy{
48
}
49
50
void set(SEXP x) {
51
- Rf_namesgets(parent, Shield<SEXP>(x));
+ if (!Rf_isNull(x))
52
+ Rf_namesgets(parent, Shield<SEXP>(x));
53
54
55
} ;
0 commit comments