Returns a list of user-supplied parameters and parameter values for saving data.
savedata_options(
outfolder = NULL,
out_fmt = "csv",
outsp_fmt = "shp",
outobj_fmt = "rds",
out_dsn = NULL,
out_layer = "outdat",
outfn.pre = NULL,
outfn.date = FALSE,
addtitle = TRUE,
raw_fmt = "csv",
raw_dsn = NULL,
overwrite_dsn = FALSE,
overwrite_layer = TRUE,
append_layer = FALSE,
add_layer = TRUE,
layer.pre = NULL,
outconn = NULL,
...
)
A list of user-supplied parameters and parameter values for saving data.
String. The outfolder to write files to. If NULL, files are written to working directory, or if gui=TRUE, a window to browse.
String. Format for output tables ('csv', 'sqlite', 'gpkg', 'gdb').
String. Format for output spatial ('shp', sqlite', 'gpkg', 'gdb').
String. Format for output spatial ('rda', 'rds', 'llo').
String. Data source name for output. If extension is not included, out_fmt is used. Use full path if outfolder=NULL.
outlayer.
String. If savedata=TRUE, prefix for output files. If rawdata=TRUE, prefix for rawdata files (if raw_fmt = 'csv') or raw_dsn (if raw_fmt != 'csv').
Logical. If TRUE, add current date to out_dsn.
Logical. If TRUE and savedata=TRUE, adds title to outfile.
String. Format for output rawdata tables ('sqlite', 'gpkg', 'csv', 'gdb').
String. Data source name for rawdata output. If extension is not included, out_fmt is used. Use full path if outfolder=NULL.
Logical. If TRUE, overwrites raw_dsn, if exists.
Logical. If TRUE, overwrites the output. If rawdata=TRUE, overwrites out_layer in rawdata folder (if raw_fmt = 'csv') or out_layers in raw_dsn (if raw_fmt != 'csv').
Logical. If TRUE, and appends data to existing *.csv files (if *_fmt = 'csv') or *_dsn layers (if *_fmt != 'csv".
Logical. If TRUE, adds layer to an existing out_dsn (if out_fmt != c('csv','shp')).
Layer prefix.
Open database connection to save to.
For extendibility.
Grayson W. White
If no parameters, an empty list is returned.
savedata_options(outfolder = "path", overwrite_dsn = FALSE)
Run the code above in your browser using DataLab