upgrade_param_gen_xml: Upgrading a param_gen.xml file to a newer version

View source: R/upgrade_param_gen_xml.R

upgrade_param_gen_xmlR Documentation

Upgrading a param_gen.xml file to a newer version

Description

Upgrading a param_gen.xml file to a newer version

Usage

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

Arguments

file

Path of a param_gen.xml file

out_dir

Output directory path of the generated file

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

overwrite

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

Details

See get_stics_versions_compat() for listing versions

Value

None

Examples

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()
)

SticsRFiles documentation built on Sept. 12, 2024, 7:41 a.m.