Skip to contents

Create XLUM files using xml2::write_xml.

Usage

write_xlum(x, file, encode_base64 = FALSE, ...)

Arguments

x

xlum_list, list, xml2::xml_document (required): input object.

file

character (required): path to the output file, with the .xlum extension added automatically if needed.

encode_base64

logical (with default): enable/disable base64 encoding for values in the <curve/> node. Please note that this parameter works only if the input is of class xlum_list.

...

further arguments to be passed to xml2::write_xml.

Value

The document is written to file; NULL is returned invisibly.

Function version

0.1.0

Author

Sebastian Kreutzer, F2.1 Geophysical Parametrisation/Regionalisation, LIAG - Institute for Applied Geophysics (Germany)

Examples

file <- system.file("extdata/xlum_prototype.xlum", package = "xlum")
xlum_data <- read_xlum(file)
write_xlum(xlum_data, tempfile())