ct_write_trial: Save a the XML file of a study

Description Usage Arguments Value Examples

View source: R/ct_write_trial.R

Description

Saves the study record as an XML in the specified path.

Usage

1
ct_write_trial(NCT, path = ".", ...)

Arguments

NCT

The NCT code of the desired study as a character, e.g. "NCT03478891".

path

The path to the directory in which the file should be saved.

...

Additional arguments to be passed to 'xml2::write_xml'.

Value

The study record as an XML file in the designed location.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Get the XML of study NCT03478891
xml_document <- get_xml_document("NCT03478891")
# Save the XML
tmp <- tempfile()  # only required for this example, not in using the library
write_xml_document(xml_document, tmp)

## End(Not run)

serghiou/clinicaltrialr documentation built on Dec. 27, 2021, 10:53 a.m.