Skip to contents

A generic function to write data to multiple locations in different formats, these being rds, fst and csv.

Usage

save_multiple_tableau(
  Object_to_save,
  filepaths,
  overwrite = TRUE,
  save_fst = FALSE,
  save_csv = FALSE,
  fileEncoding = ""
)

Arguments

Object_to_save

The object to save

filepaths

To the datalocation of the project

overwrite

whether to overwrite existing file when copying to other directory.

save_fst

Default FALSE: No fst is written. When TRUE becomes

save_csv

Default FALSE: No CSV is saved. When TRUE becomes both a .rds and a .csv are saved.

fileEncoding

The fileencoding for write.csv2 can be passed here. If not specified, the default fileencoding will be used.