Skip to contents

Saves a data frame as .xlsx via writexl.

Usage

save_table(df, filename, path)

Arguments

df

A data frame.

filename

Character. Output filename (e.g., "table1.xlsx").

path

Character. Output directory.

Value

Character. Full path to saved file (invisible).

Examples

out <- save_table(mtcars, "cars.xlsx", tempdir())
#> ✔ Table saved: /tmp/Rtmp5ydOUY/cars.xlsx
file.exists(out)
#> [1] TRUE
unlink(out)