Upgrading a param_newform.xml file to a newer version

upgrade_param_newform_xml(
  file,
  out_dir,
  param_gen_file,
  stics_version = "V9.2",
  target_version = "V10.0",
  check_version = TRUE,
  overwrite = FALSE
)

Arguments

file

Path of a param_newform.xml file

out_dir

Output directory path of the generated file

param_gen_file

Path of the param_gen.xml file corresponding to the file version

stics_version

Name of the STICS version (VX.Y format)

target_version

Name of the STICS version to upgrade files to (VX.Y format)

check_version

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. If TRUE, param_gen_file is mandatory.

overwrite

logical (optional), TRUE for overwriting file if it exists, FALSE otherwise

Value

None

Details

See SticsRFiles::get_stics_versions_compat() for listing versions

Examples

dir_path <- get_examples_path(file_type = "xml", stics_version = "V9.2")

upgrade_param_newform_xml(
  file = file.path(dir_path,"param_newform.xml"),
  out_dir = tempdir(),
  param_gen_file = file.path(dir_path, "param_gen.xml")
)
#> Warning: /var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T//Rtmp6TMon6/param_newform.xml: 
#> already exists, consider setting overwrite to TRUE