Skip to contents

Ingest JSON or xlsx ARS (Analysis Results Standard) metadata, and meta-programme R scripts that could be run as-is to produce Analysis Results Datasets when ingesting ADaM datasets

Usage

readARS(JSON_ARS, output_path = tempdir(), adam_path = tempdir())

Arguments

JSON_ARS

A JSON file containing ARS metadata for a reporting event

output_path

Path to store .R ARD scripts

adam_path

Path to folder containing ADaM datasets, to be run in ARD program

Value

R programmes generating ARDs - one for each output specificied in the ARS JSON

Examples

# path to JSON file containing ARS metadata

json_path <- ARS_example("ARS_V1_Common_Safety_Displays.json")

# output path for R programs
output_dir = tempdir()

# folder containing ADaM datasets
adam_folder = tempdir()

# run function, write to temp directory
readARS(json_path, output_dir, adam_folder)