Skip to contents

Run one implemented MORIE module against CPADS data

Usage

morie_run_morie_module(
  module_name,
  cpads_csv = .cpads_default_csv(),
  output_dir = NULL
)

Arguments

module_name

Module name.

cpads_csv

Path to the CPADS CSV.

output_dir

Optional directory for CSV outputs.

Value

Named list of data-frame outputs.

Examples

# \donttest{
# Dispatch one MORIE module against the canonical CPADS CSV. The CSV
# ships with a morie project tree, or is fetched via the CKAN endpoint
# (morie_load_dataset("ocp21")). Wrapped in tryCatch so the example
# documents usage even when the CSV is not checked out locally.
tryCatch(
  morie_run_morie_module("descriptive-statistics"),
  error = function(e) message(conditionMessage(e))
)
#> CPADS CSV not found: data/datasets/oc/CPADS/2021-2022/cpads-2021-2022-pumf2.csv
# }