Save a data frame as an xlsx
tar_xlsx.Rd
A target for exporting a data frame as a xlsx file.
Arguments
- dataframe_target
the name of the target that will generate the data frame for export
- export_path
the destination path of the exported xlsx file
Details
The name of the returned target will be the name of the data frame target with the prefix export_
.
The file name of the exported xlsx file will be that of the argument provided to dataframe_target
.
Examples
if (identical(Sys.getenv("TAR_LONG_EXAMPLES"), "true")) {
targets::tar_dir({
targets::tar_script({
list(
targets::tar_target(
iris,
iris
),
jftargets::tar_xlsx(iris)
)
})
targets::tar_make()
tar_read(export_iris)
})
}