action-helpers: Action Helpers

action-helpersR Documentation

Action Helpers

Description

These helpers are meant to be used on the right hand side of the trick specification, which is evaluated when the trick is selected.

Usage

call_addin(package, name)

replace_selection(txt)

replace_current_lines(txt)

insert_at_position(txt, row = Inf, col = Inf)

send_cursor_at_position(row = 1, col = 1)

Arguments

package, name

package and addin name

txt

A character object, or will be coerced to character using deparse(). Used as a replacement for the selection text.

row, col

row and column in he editor

Details

  • replace_selection replaces the selection in the editor with its argument

  • call_addin calls a standard RStudio addin


moodymudskipper/poof documentation built on Dec. 10, 2024, 12:07 a.m.