- Notifications
You must be signed in to change notification settings - Fork1.9k
Open
Description
Thanks to#3774, ordering of elements in areactiveValues()
object is fixed to the insertion order. In an application of mine, I need the ability to reorder elements. As there is no way to remove an element, the only way I could find to get me what I need was to fiddle with internals. Something along the lines of
reorder_rv<-function(x,new) { stopifnot( setequal(new, names(x)), anyDuplicated(new)==0L )internals<- .subset2(x,"impl")internals$.nameOrder<-newinvisible(x)}
While I appreciate that it might not be a very common problem I'm trying to get around here I nevertheless wanted to raise the issue here and ask whether you're open to providing such functionality as part of the "public" API.
Metadata
Metadata
Assignees
Labels
No labels