Learn R Programming

dmdScheme (version 1.3.5)

write_excel: Write write x as an excel file to disk

Description

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, ...)

Value

invisibly returns the path to the file saved to

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())

Examples

Run this code
write_excel(dmdScheme(), file = tempfile())
write_excel(dmdScheme_raw(), file = tempfile())

Run the code above in your browser using DataLab