Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Reorder elements in areactiveValues() object #4190

Open
@nbenn

Description

@nbenn

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp