| mellio_addin_send | R Documentation |
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.
mellio_addin_send()
Registered via inst/rstudio/addins.dcf. Appears in RStudio's
Addins menu once the package is loaded.
Invisibly NULL. Side effect: opens the browser at Mellio.
Other R bridge:
mellio_capture(),
mellio_compare(),
mellio_open(),
mellio_payload(),
mellio_to_json(),
print.mellio_payload()
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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.