Fix a user options file by setting the default values for missing options.
options.fix(
options_file_name = NULL,
options_dir = NULL,
template_path = NULL,
force_default_overwrites = TRUE
)NULL Fixes the user options file.
[character, optional] Name of the options file to fix, including the .yaml suffix. Defaults to NULL.
[character, optional] Path to the folder in which to look for user options files. Defaults to NULL.
[character, optional] Path to the options template file. Defaults to NULL.
[logical, optional] If set to TRUE, the function will overwrite the existing options file with the default values. Defaults to TRUE.
The function will attempt to load the user options file and validate it. If any errors are found, the function will attempt to fix them by setting the default values for the missing options.