mellio_open: Open a table, statistical result, or plot in Mellio

View source: R/mellio-open.R

mellio_openR Documentation

Open a table, statistical result, or plot in Mellio

Description

Unified entry point for sending R objects to the Mellio web app. Statistical results and tables open as Stats Result Cards; plots open in the web app's Figures editor.

Usage

mellio_open(x, ..., browse = TRUE, .call = NULL)

Arguments

x

An R object supported by Mellio.

...

Additional arguments forwarded to the relevant Mellio constructor or payload method.

browse

Open the browser? TRUE by default. Set FALSE to return the URL without launching anything.

.call

Internal captured user call for provenance.

Value

Invisibly, the URL string.

Supported inputs

mellio_open() routes objects by class:

  • Statistical results such as htest, lm, glm, aov, lavaan, mixed-model, survival, ordinal, mediation, and selected optional-package result classes open as structured Result Cards.

  • Data frames, matrices, base table objects, and non-statistical melliotab objects open in the Tables workspace.

  • ggplot2, lattice, htmlwidget, recorded plot, and supported image-file inputs open in Figures.

Optional model and figure integrations use packages listed in Suggests. If an optional package is not installed, the corresponding object class is skipped or reported with an informative message.

Privacy and destination

mellio_open() opens ⁠https://www.mellioapp.com⁠ by default. Advanced users can set options(mellio.editor_url = "https://..."), but should only use a trusted Mellio deployment. The R payload is encoded in the URL fragment. URL fragments are not sent as HTTP requests to the server, but the full URL can still be visible to the browser, the opened web app, browser history, extensions, and anyone the URL is shared with.

By default, Mellio payloads include R/package-version metadata and data fingerprints where available. Local machine details are opt-in: options(mellio.provenance = "full"). To omit provenance metadata, use options(mellio.provenance = FALSE).

Plot size limits

Plots are transported through the URL hash. Very large images may exceed browser URL limits; reduce width, height, or dpi, or save the image and upload it manually in Mellio.

See Also

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

Examples


if (interactive()) {
  mellio_open(t.test(extra ~ group, data = sleep))

  m1 <- lm(Ozone ~ Temp, data = airquality)
  m2 <- lm(Ozone ~ Temp + Wind, data = airquality)
  m3 <- lm(Ozone ~ Temp + Wind + Solar.R, data = airquality)
  mellio_open(
    m1, m2, m3,
    labels = c("Step 1", "Step 2", "Step 3"),
    dep.var.labels = "Ozone concentration"
  )
}


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