Title: Hippie Code Completion in 'RStudio'
Version: 0.1.0
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.
URL: https://github.com/crew102/hippie
BugReports: https://github.com/crew102/hippie/issues
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.1.2
Imports: rstudioapi (≥ 0.13), utils, sourcetools
Suggests: testthat (≥ 3.0.0), withr, fs
NeedsCompilation: no
Packaged: 2022-08-28 22:08:47 UTC; cbaker
Author: Christopher Baker [aut, cre]
Maintainer: Christopher Baker <chriscrewbaker@gmail.com>
Repository: CRAN
Date/Publication: 2022-09-05 08:30:05 UTC

Hippie Code Completion

Description

Invoke Hippie Completion, either upwards or downwards. This function is meant to be called as a shortcut.

Usage

hippie_up()

hippie_down()

Value

Nothing. A match token is inserted into the relevant RStudio source document context.

Examples

## Not run: 
# Not intended to be called directly. Rather, bind to a keyboard shortcut.
hippie_up()
hippie_down()

## End(Not run)

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)