insert_arrows: Insert arrow (->, ->>, <-, <<-)

insert_arrowsR Documentation

Insert arrow (->, ->>, <-, <<-)

Description

RStudio add-in to insert either ⁠->⁠, ⁠->>⁠, ⁠<-⁠ or ⁠<<-⁠ at the cursor position.

Usage

rs_insert_arrow_rl(context = rs_get_context())

rs_insert_arrow_rl2(context = rs_get_context())

rs_insert_arrow_lr(context = rs_get_context())

rs_insert_arrow_lr2(context = rs_get_context())

Arguments

context

(class document_context)
Object with context of active RStudio document.

Note

use hotkeys combination ALT + - to insert ⁠<-⁠ in RStudio.

See Also

Assignment operators assignOps.

Other 'Insert at cursor position' addins: insert_line

Examples

## Not run: 
\donttest{
library(addins.rs)

rs_insert_arrow_rl()
## <-

rs_insert_arrow_rl2()
## <<-

rs_insert_arrow_lr()
## ->

rs_insert_arrow_lr2()
## ->>
}

## End(Not run)

GegznaV/addins.rs documentation built on May 5, 2023, 11:12 p.m.