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

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

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

Value

None

Examples


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")
)
#> Warning: Unknown crop code name: snu Using default parameters values!
#> stage_const_height: no, elongation: 1, nw_height: 0, code_shape: 1, haut_dev_x0: 0, haut_dev_k: 0