Gilead-BioStats / gsm

Good Statistical Monitoring R Package
https://gilead-biostats.github.io/gsm/
Apache License 2.0
39 stars 9 forks source link

Feature: Add hooks to RunWorkflow framework #1818

Open jwildfire opened 2 months ago

jwildfire commented 2 months ago

Feature Details

Add the code below to RunWorkflow

Example Code

  # If dbConfig and a spec are provided attempt to add data from the database to lData
  if (!is.null(dbConfig) && "spec" %in% names(lWorkflow)) {
    cli::cli_h3("Fetching data from database")
    lData <- FetchData(lData, lWorkflow$spec, dbConfig)
  }

Possible Implementation

Additional Comments

jwildfire commented 1 month ago

Closing this. Planning to implement in {gsm.template}

lauramaxwell commented 2 weeks ago

@jwildfire - so should we open this back up for gsm from what spencer has done in gsm.template and/or what a2ai as done in gsm.runner, after our discussion with the a2ai team?

jwildfire commented 1 week ago

@dpastoor to add notes here.

jwildfire commented 1 week ago

Put together very basic implementation over using minor edits to lConfig parameter in https://github.com/Gilead-BioStats/gsm.template/pull/38. @samussiah to work on implementing in gsm PR.