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
)xml plant file path or a vector of
Output directory path
Path of the param_gen.xml file corresponding to the initial version
Path of the param_newform.xml file corresponding to the file version
additional argument(s) to pass to called functions
Logical TRUE for overwriting files, FALSE otherwise (default)
Logical for rising warnings, FALSE otherwise
None
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