R/addin.R

Defines functions boom_addin

boom_addin <- function() {
  # nocov start

  ## fetch context and selection
  context <- rstudioapi::getSourceEditorContext()
  selection <- rstudioapi::primary_selection(context)[["text"]]
  eval.parent(str2lang(paste0("boomer::boom(",selection, ")")))
  invisible()
  # nocov end
}

Try the boomer package in your browser

Any scripts or data that you put into this service are public.

boomer documentation built on Sept. 11, 2024, 5:07 p.m.