addins: Rstudio keyboard shortcuts on F-keys

addinsR Documentation

Rstudio keyboard shortcuts on F-keys

Description

Rstudio addins to examine highlighted code / object. It can be very useful to bind these addins as outlined in https://github.com/brry/rskey#rstudio-addins-for-keyboard-shortcuts

Usage

str_addin(
  obj = selectobject(),
  use_glimpse = getOption("rskey_glimpse", FALSE)
)

head_addin(obj = selectobject())

tail_addin(obj = selectobject())

View_addin(obj = selectobject())

funSource_addin(obj = selectobject(eval = FALSE))

summary_addin(obj = selectobject())

dim_addin(obj = selectobject())

class_addin(obj = selectobject())

plot_addin(obj = selectobject())

hist_addin(obj = selectobject())

unique_addin(obj = selectobject())

Arguments

obj

List containing object (some R object) fullcode (code, objectname, expression) and code (potentially truncated version). For funSource_addin, only the function name should be highlighted. DEFAULT: Rstudio addin selected code from selectobject

use_glimpse

Logical: use pillar::glimpse instead of base::str? Can be set to TRUE with options(rskey_glimpse=TRUE). To set permananently, use: cat("options(rskey_glimpse=TRUE)\n", file="~/.Rprofile", append=TRUE). DEFAULT: getOption("rskey_glimpse", FALSE)

Value

Output of the respective functions

Author(s)

Berry Boessenkool, berry-b@gmx.de, May 2017

See Also

selectobject, berryFunctions::funSource, https://github.com/daattali/addinslist#readme

Examples

# Go to Addins - browse Addins - Keyboard shortcuts - map commands as desired
# or use    setKeyboardBindings()

# highlight objects or code (examples below), then press keyboard shortcut
iris
iris$Sepal.Length + 10


brry/rskey documentation built on Jan. 10, 2023, 3:24 p.m.