Skip to contents

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

if (FALSE) {
if(interactive()){
 write_rda("an_rda_file_named_that", an_object_named_this)
 }
}