lazy_writer: convenience wrapper to save off object as cvs and RDS

Description Usage Arguments Details Value Examples

View source: R/lazy_writer.R

Description

A convenience closure to wrap around write_out

Usage

1
lazy_writer(rds_output_directory = NULL, csv_output_directory = NULL)

Arguments

rds_output_directory

the directory to save the RDS file to

csv_output_directory

the directory to save the csv file to

Details

This function creates a function which will save off RDS and csv files to named directories

Value

a function which in turn writes out an object to a csv and RDS file

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# creates a function which will save RDS and csv files to the
# "rds_files" and  "csv_files" directories
x <- lazy_writer("rds_files","csv_files")

# write out the files
x(mtcars)

## End(Not run)

MarkGoble/mishMashr documentation built on Oct. 12, 2020, 8:24 p.m.