save_gcae_options: Save a 'gcae_options' to file

View source: R/save_gcae_options.R

save_gcae_optionsR Documentation

Save a gcae_options to file

Description

Save a gcae_options to file

Usage

save_gcae_options(
  gcae_options = gcae_options,
  gcae_options_filename = gcae_options_filename
)

Arguments

gcae_options

options to run GCAE, as created by create_gcae_options

gcae_options_filename

name of a file to save/load a gcae_options to/from

Value

Nothing

Author(s)

Richèl J.C. Bilderbeek

See Also

Use read_gcae_options_file to read a gcae_options from file

Examples

# Create a gcae_options
gcae_options <- create_gcae_options()

# Use a temporary file
gcae_options_filename <- get_gcaer_tempfilename(fileext = ".csv")

# Save gcae_options to temporary file
save_gcae_options(
  gcae_options = gcae_options,
  gcae_options_filename = gcae_options_filename
)

# Load the temporary file to get a copy of the gcae_options
gcae_options_again <- read_gcae_options_file(gcae_options_filename)

# Cleanup
file.remove(gcae_options_filename)

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.