Write configuration options in file or API
writeIni(
listData,
pathIni,
opts = antaresRead::simOptions(),
...,
default_ext = ".ini"
)
writeIniFile(listData, pathIni, overwrite = FALSE)
writeIniAPI(listData, pathIni, opts)
list
, modified list obtained by antaresRead:::readIniFile.
Character
, Path to ini file.
List of simulation parameters returned by the function
antaresRead::setSimulationPath()
Additional arguments.
Default extension used for config files.
logical, should file be overwritten if already exist?
if (FALSE) { # \dontrun{
pathIni <- "D:/exemple_test/settings/generaldata.ini"
generalSetting <- readIniFile(pathIni)
generalSetting$output$synthesis <- FALSE
writeIni(generalSetting, pathIni)
} # }