invoke_view {hippie} | R Documentation |
Invoke View()
on a piped expression
Description
This function is meant to be called as a shortcut. It will look for the
left-nearest expression that contains either the magrittr or built in pipe
operator (%>%
or |>
), wrap it in a call to View()
, then evaluate the
result. By default it'll send the code to the console and evaluate it from
there, so that it's available in your execution history. To evaluate the code
straight away instead of sending it to the console first, set
option(hippie.pipe_to_console = FALSE)
.
Usage
invoke_view()
Value
Nothing. Code is either sent to your console for evaluation or evaluated straight away.
Examples
## Not run:
# Not intended to be called directly. Rather, bind to a keyboard shortcut.
invoke_view()
## End(Not run)
[Package hippie version 0.1.0 Index]