Skip to content

feat: use NSE for pick() input, assign var in current env? #1

@markheckmann

Description

@markheckmann

1. Use NSE

Currently, one has to pass a string with the object name:

pick("name")

It would be nice to also use NSE like in pack. Then the following would be equivalent.

pick(name)

To allow passing variables containing the name, rlang/dplyr syntax could be implemented.

2. Short form

Currently, one has to use pick() as follows to save it to an object.

name <- pick("name")

In most cases, pick is used interactively. We might consider an additional function pick2() (or similar) as a shortcut to assign an object with the same name automatically to the current env. Then, the following lines would be equivalent.

name <- pick("name")
pick2("name")

And with additional NSE

pick2(name)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions