eudract (version 0.9.0)

simple_safety_xml: creates a simple xml file from the input of a safety_summary object

Description

creates a simple xml file from the input of a safety_summary object

Usage

simple_safety_xml(x, file, schema = system.file("extdata", "simple.xsd",
  package = "eudract"))

Arguments

x

an object of class safety_summary, as created by safety_summary.

file

a character string name the file to be created

schema

a character string giving the file path to the schema for the outputxml file. Defaults to the schema provided in this package.

Value

no output is returned, but a file is created as a side-effect.

See Also

eudract_convert safety_summary

Examples

Run this code
# NOT RUN {
safety_statistics <- safety_summary(safety,
                                    exposed=c("Experimental"=60,"Control"=67))
simple <- tempfile(fileext = ".xml")
eudract <- tempfile(fileext = ".xml")
simple_safety_xml(safety_statistics, simple)
eudract_convert(input=simple,
                output=eudract)
# }

Run the code above in your browser using DataCamp Workspace