Write a list of objects of type exposureOutcome to file. The file is in JSON format.
saveExposureOutcomeList(exposureOutcomeList, file)Invisibly returns NULL. Saves the exposure-outcome list to file as a side effect.
# \donttest{
if (interactive()) {
eo1 <- createExposureOutcome(exposureId = 1124300, outcomeId = 444382)
saveExposureOutcomeList(list(eo1), file.path(tempdir(), "exposureOutcomes.json"))
}
# }