write_data: Write rda file to data/

View source: R/pkg_helpers.R

write_dataR Documentation

Write rda file to data/

Description

This function writes an rda file in data and names it schemeName. Makes saving objects easier from within a function. Inspired by this StackOverflow post. Uses 'xz' to compress the file.

Usage

write_data(schemeName, data)

Arguments

schemeName

the name of the rda file, without the .rda extension

data

the object to save

Value

the path to the rda file

Examples

## Not run: 
if(interactive()){
 write_rda("an_rda_file_named_that", an_object_named_this)
 }

## End(Not run)

drejom/helpeRs documentation built on Aug. 26, 2022, 4:52 a.m.