vaeac_check_save_names function

Function that checks that the save folder exists and for a valid file name

Function that checks that the save folder exists and for a valid file name

vaeac_check_save_names(folder_to_save_model, model_description)

Arguments

  • folder_to_save_model: String (default is base::tempdir()). String specifying a path to a folder where the function is to save the fitted vaeac model. Note that the path will be removed from the returned explain() object if vaeac.save_model = FALSE.
  • model_description: String (default is make.names(Sys.time())). String containing, e.g., the name of the data distribution or additional parameter information. Used in the save name of the fitted model. If not provided, then a name will be generated based on base::Sys.time() to ensure a unique name. We use base::make.names() to ensure a valid file name for all operating systems.

Returns

The function does not return anything.

Author(s)

Lars Henry Berge Olsen