Skip to contents

Convert the object x to an xml_document object using the function as_xml() and write it to a file. If no method as_xml() exists for the object |classx, an error will be raised.

Usage

write_excel(x, file, ...)

Arguments

x

object which can be convertewd to a dmdSchemeSet_raw odject using the function as_dmdScheme_raw which will saved as an xlsx file.

file

Path to file or connection to write to.

...

additional parameter for the conversion function (writexl::write_xlsx())

Value

invisibly returns the path to the file saved to

Examples

write_excel(dmdScheme(), file = tempfile())
write_excel(dmdScheme_raw(), file = tempfile())