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.
Arguments
- x
object which can be convertewd to a
dmdSchemeSet_rawodject using the functionas_dmdScheme_rawwhich will saved as anxlsxfile.- file
Path to file or connection to write to.
- ...
additional parameter for the conversion function
(writexl::write_xlsx())
Examples
write_excel(dmdScheme(), file = tempfile())
write_excel(dmdScheme_raw(), file = tempfile())