Description Usage Arguments Value Examples
View source: R/ct_write_trial.R
Saves the study record as an XML in the specified path.
1 | ct_write_trial(NCT, path = ".", ...)
|
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'. |
The study record as an XML file in the designed location.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.