Learn R Programming

siera (version 0.5.0)

readARS: Ingest ARS (Analysis Results Standard) metadata, produce ARD (Analysis Results Dataset) code for each output

Description

Ingest 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(
  ARS_path,
  output_path = tempdir(),
  adam_path = tempdir(),
  spec_output = "",
  spec_analysis = "",
  example = FALSE
)

Value

R programmes generating ARDs - one for each output (or analysis from an output) specified in the ARS metadata

Arguments

ARS_path

A 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

spec_output

The output ID for a specific output to be run from the metadata

spec_analysis

The analysis ID for a specific analysis to be run from the metadata

example

Default is FALSE. If TRUE, example-based operations will be applied to CDISC example ARS. If FALSE, AnalysisMethodCodeTemplateCode will be expected as source of the Method (and Operations) code

Examples

Run this code
# path to file containing ARS metadata

ARS_path <- ARS_example("Common_Safety_Displays_cards.xlsx")

# output path for R programs
output_dir = tempdir()

# folder containing ADaM datasets
adam_folder = tempdir()

# run function, write to temp directory
readARS_xl(ARS_path, output_dir, adam_folder)

Run the code above in your browser using DataLab