esave: save objects with backup

Description Usage Arguments Value Examples

View source: R/esave.R

Description

saves objects in different formats and automatically makes backups. Only tested on data.frames so far (Tue Nov 24 12:37:51 2020)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
esave(
  DT1,
  filename = "",
  filepath = "./",
  csv = FALSE,
  xlsx = FALSE,
  fst = FALSE,
  qs_preset = "archive",
  fst_preset = 100
)

Arguments

DT1

an R object.

filename

name of the file. Do not include a fileextension, these will be automatically appended depending on save functions used.

filepath

filepath to save to. Default is the name of the saved object.

csv

save as csv-file with fwrite.

xlsx

save as xslx excel-sheet with writexl.

fst

save as fst-file with fst.

qs_preset

compression of qs file. One of "fast", "high" (default), "high", "archive", "uncompressed" or "custom". See details in qsave() function from the library(qs).

fst_preset

compression of fst file. Value in the range 0 to 100, indicating the amount of compression to use. Lower values mean larger file sizes. The default compression is set to 50. See details in fst_write() function from the library(fst).

Value

This function returns the url blah blah blah

Examples

1
2
3
4
## Not run: 
function(arg1)

## End(Not run)

emilBeBri/dttools documentation built on April 21, 2021, 5:44 a.m.