R/upgrade_param_gen_xml.R
upgrade_param_gen_xml.Rd
Upgrading a param_gen.xml file to a newer version
upgrade_param_gen_xml(
file,
out_dir,
stics_version = "V9.2",
target_version = "V10.0",
check_version = TRUE,
overwrite = FALSE
)
Path of a param_gen.xml file
Output directory path of the generated file
Name of the STICS version (VX.Y format)
Name of the STICS version to upgrade files to (VX.Y format)
Perform version consistency with in stics_version input with the file version and finally checking if the upgrade is possible allowed to the target_version
logical (optional), TRUE for overwriting file if it exists, FALSE otherwise
None
See get_stics_versions_compat() for listing versions
dir_path <- get_examples_path(file_type = "xml", stics_version = "V9.2")
upgrade_param_gen_xml(
file = file.path(dir_path, "param_gen.xml"),
out_dir = tempdir()
)
#> Warning: /var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T//Rtmp6TMon6/param_gen.xml:
#> already exists, consider setting overwrite to TRUE