mellio_addin_send: RStudio addin — Send the selected R expression to Mellio

View source: R/bridge-addin.R

mellio_addin_sendR Documentation

RStudio addin — Send the selected R expression to Mellio

Description

Reads the active selection in the RStudio editor, evaluates it in the global environment, and opens the result as a Result Card in the Mellio web app. The selected text is preserved as the displayed call so the saved card still says e.g. "t.test(score ~ group, data = df)" rather than the evaluated variable.

Usage

mellio_addin_send()

Details

Registered via inst/rstudio/addins.dcf. Appears in RStudio's Addins menu once the package is loaded.

Value

Invisibly NULL. Side effect: opens the browser at Mellio.

See Also

Other R bridge: mellio_capture(), mellio_compare(), mellio_open(), mellio_payload(), mellio_to_json(), print.mellio_payload()

Examples


if (interactive() &&
    requireNamespace("rstudioapi", quietly = TRUE) &&
    rstudioapi::isAvailable()) {
  # Highlight   t.test(extra ~ group, data = sleep)   in RStudio
  # Addins menu -> Send to Mellio
  mellio_addin_send()
}


mellio documentation built on Aug. 30, 2026, 1:06 a.m.