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.
Examples
if (FALSE) {
if(interactive()){
write_rda("an_rda_file_named_that", an_object_named_this)
}
}