| mellio_open | R Documentation |
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.
mellio_open(x, ..., browse = TRUE, .call = NULL)
x |
An R object supported by Mellio. |
... |
Additional arguments forwarded to the relevant Mellio constructor or payload method. |
browse |
Open the browser? |
.call |
Internal captured user call for provenance. |
Invisibly, the URL string.
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.
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).
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.
Other R bridge:
mellio_addin_send(),
mellio_capture(),
mellio_compare(),
mellio_payload(),
mellio_to_json(),
print.mellio_payload()
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"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.