R/data_config.R

Defines functions config.fix

Documented in config.fix

#' @title Fix the data config
#' @description Fix the data config.
#' @param options_file_name *\[character, optional\]* The name of the options file to read the data config from. If `NULL` (default), the data config will be read from the `artma.data.config` option.
#' @param options_dir *\[character, optional\]* The directory to read the options file from. If `NULL` (default), the current working directory will be used.
#' @return *\[list\]* The fixed data config.
#' @export
config.fix <- function(options_file_name = NULL, options_dir = NULL) {
  box::use(artma / data_config / write[fix_data_config])
  runtime_setup( # nolint: box_usage_linter. # Imported on a package-level
    options_file_name = options_file_name,
    options_dir = options_dir,
    FUN = fix_data_config
  )
}

Try the artma package in your browser

Any scripts or data that you put into this service are public.

artma documentation built on June 8, 2025, 10:40 a.m.