Learn R Programming

SticsRFiles (version 1.7.0)

upgrade_plt_xml: Upgrade _plt.xml file(s) to a next major version

Description

Upgrade _plt.xml file(s) to a next major version

Usage

upgrade_plt_xml(
  file,
  out_dir,
  param_gen_file,
  param_newform_file,
  ...,
  overwrite = FALSE,
  warning = TRUE
)

Value

None

Arguments

file

xml plant file path or a vector of

out_dir

Output directory path

param_gen_file

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

param_newform_file

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

...

additional argument(s) to pass to called functions

overwrite

Logical TRUE for overwriting files, FALSE otherwise (default)

warning

Logical for rising warnings, FALSE otherwise

Examples

Run this code

dir_path <- get_examples_path(file_type = "xml", stics_version = "V10.0")

upgrade_plt_xml(
  file = file.path(dir_path, "file_plt.xml"),
  out_dir = tempdir(),
  param_gen_file = file.path(dir_path, "param_gen.xml"),
  param_newform_file = file.path(dir_path, "param_newform.xml")
)

Run the code above in your browser using DataLab