Gilead-BioStats / clindata

Synthetic Data for testing and development
https://gilead-biostats.github.io/clindata/
Apache License 2.0
9 stars 0 forks source link

Fix 150 - add ae_case_study #151

Closed mattroumaya closed 1 year ago

mattroumaya commented 1 year ago

Fix #150

To run Study_Report() in {gsm}:

# install fix-150 branch to test
devtools::install_github("Gilead-BioStats/clindata@fix-150")
devtools::load_all() # {gsm dev}

# -------------------------------------------------------------------------

# -- restart session load new version of {clindata} --

# -------------------------------------------------------------------------

devtools::load_all() # {gsm dev}

snapshot <- readRDS(system.file('ae_case_study', 'snapshots', "2023-05-09", "snapshot.rds", package = "clindata"))

augment <- Augment_Snapshot(lSnapshot = snapshot, cPath = system.file('ae_case_study', 'snapshots', package = "clindata"))

Study_Report(augment$lStudyAssessResults)

To run {grail}:

In terminal...

git fetch
git checkout ae-case-study-demo

In R...

devtools::install_github("Gilead-BioStats/clindata@fix-150")

### restart R session ###

devtools::load_all(); GrailApp(strStudyPath = system.file('ae_case_study', 'snapshots', package = "clindata"))

Some bugs/undesired effects: