inst/reports/tutorial/opal-exec.R

#!/usr/bin/Rscript

library(opalr)

# change report input path to fit your environment
input <- "inst/reports/tutorial/opal-prod.Rmd"

# change the output directory to fit your environment
output <- "/tmp"

# set report options
options(opal.url="https://opal-demo.obiba.org",
        opal.username="administrator",
        opal.password="password",
        opal.report.style="Flatly")

# expected report path is the html file in the output directory
opal.report(input, output=output, progress=TRUE)

Try the opalr package in your browser

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

opalr documentation built on Sept. 18, 2024, 9:11 a.m.