Title: | Hippie Code Completion in 'RStudio' |
---|---|
Description: | An 'RStudio' Addin for Hippie Expand (AKA Hippie Code Completion or Cyclic Expand Word). This type of completion searches for matching tokens within the user's current source editor file, regardless of file type. By searching only within the current source file, 'hippie' offers a fast way to identify and insert completions that appear around the user's cursor. |
Authors: | Christopher Baker [aut, cre] |
Maintainer: | Christopher Baker <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-01 05:09:50 UTC |
Source: | https://github.com/crew102/hippie |
Invoke Hippie Completion, either upwards or downwards. This function is meant to be called as a shortcut.
hippie_up() hippie_down()
hippie_up() hippie_down()
Nothing. A match token is inserted into the relevant RStudio source document context.
## Not run: # Not intended to be called directly. Rather, bind to a keyboard shortcut. hippie_up() hippie_down() ## End(Not run)
## Not run: # Not intended to be called directly. Rather, bind to a keyboard shortcut. hippie_up() hippie_down() ## End(Not run)
View()
on a piped expressionThis 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)
.
invoke_view()
invoke_view()
Nothing. Code is either sent to your console for evaluation or evaluated straight away.
## Not run: # Not intended to be called directly. Rather, bind to a keyboard shortcut. invoke_view() ## End(Not run)
## Not run: # Not intended to be called directly. Rather, bind to a keyboard shortcut. invoke_view() ## End(Not run)