Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

peek_vars

Peek at variables in the selection context


Description

  • peek_vars() returns the vector of names of the variables currently available for selection.

  • peek_data() returns the whole input vector (only available with eval_select()).

Read the Get started for examples of how to create selection helpers with peek_vars().

The variable names in a selection context are registered automatically by eval_select() and eval_rename() for the duration of the evaluation. peek_vars() is the glue that connects selection helpers to the current selection context.

Usage

peek_vars(..., fn = NULL)

peek_data(..., fn = NULL)

Arguments

...

These dots are for future extensions and must be empty.

fn

The name of the function to use in error messages when the helper is used in the wrong context. If not supplied, a generic error message is used instead.


tidyselect

Select from a Set of Strings

v1.1.1
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.