Run the Syrona demo

Curated demo dataset → comparison → dashboard. Requires R ≥ 4.1.

Version: Terminal

Open Terminal and copy-paste each block. You stay at the shell prompt the whole time.

  1. Install (once):
    Rscript -e 'install.packages("syrona")'
    # not on CRAN yet? install from GitHub:
    # Rscript -e 'install.packages("remotes")'
    # Rscript -e 'remotes::install_github("HealthInformaticsUT/Syrona")'
  2. Run the comparison and launch the dashboard (opens in your browser; press Ctrl+C to stop):
    Rscript -e '
    library(syrona)
    base <- tempdir()   # or a folder you choose, e.g. base <- path.expand("~/syrona-demo")
    file.copy(system.file("extdata", "demo", package = "syrona"), base, recursive = TRUE)
    dir <- file.path(base, "demo")
    options(syrona.data_dir = dir)
    compare_all("demo_population", "demo_selected")
    run_app(data_dir = dir)
    '

Version: RStudio

Paste each block into the RStudio Console.

  1. Install & load (install once):
    install.packages("syrona")   # once
    library(syrona)
    
    # not on CRAN yet? install from GitHub instead:
    # install.packages("remotes")
    # remotes::install_github("HealthInformaticsUT/Syrona")
  2. Copy the bundled demo to a writable folder (the installed copy is read-only):
    base <- tempdir()   # or a folder you choose, e.g. base <- path.expand("~/syrona-demo")
    file.copy(system.file("extdata", "demo", package = "syrona"), base, recursive = TRUE)
    dir <- file.path(base, "demo")
  3. Run the comparison workflow (writes data/comparisons/):
    options(syrona.data_dir = dir)
    compare_all("demo_population", "demo_selected")
  4. Launch the dashboard:
    run_app(data_dir = dir)

The demo is a curated subset (32 concepts across conditions, procedures, and drugs) of the Est-Health-30 vs Estonian Biobank comparison. demo_population = general sample, demo_selected = biobank-like sample.