Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
allow name removal
  • Loading branch information
Enchufa2 authored and eddelbuettel committed Apr 7, 2026
commit 6b25d596717904b2809fc066d1c93606d25c6be5
3 changes: 2 additions & 1 deletion inst/include/Rcpp/proxy/NamesProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class NamesProxyPolicy{

void set(SEXP x) {
if (!Rf_isNull(x))
Rf_namesgets(parent, Shield<SEXP>(x));
Rf_namesgets(parent, x);
else Rf_setAttrib(parent, R_NamesSymbol, x);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thanks for catching that.

}

} ;
Expand Down