Upgrading _plt.xml file(s) to a newer version
upgrade_plt_xml(
file,
out_dir,
param_newform_file,
param_gen_file,
stics_version = "V9.2",
target_version = "V10.0",
check_version = TRUE,
overwrite = FALSE,
...
)
Path of an plant (*_plt.xml) file or a vector of
Output directory path of the generated files
Path of the param_newform.xml file corresponding to the file version
Path of the param_gen.xml file corresponding to the file version
Name of the STICS version (VX.Y format)
Name of the STICS version to upgrade files to (VX.Y format)
Perform version consistency between stics_version
and the file version, for finally checking if an upgrade is possible
allowed to the target_version. If TRUE, param_gen_file is mandatory.
logical (optional), TRUE for overwriting file if it exists, FALSE otherwise
Additional input arguments
None
See get_stics_versions_compat() for listing versions
dir_path <- get_examples_path(file_type = "xml", stics_version = "V9.2")
upgrade_plt_xml(
file = file.path(dir_path,"file_plt.xml"),
out_dir = tempdir(),
param_newform_file = file.path(dir_path, "param_newform.xml"),
param_gen_file = file.path(dir_path, "param_gen.xml")
)
#> file_plt.xml: be aware that irazomax is a new parameter and its value (0.879)
#> is estimated using some other parameters values.
#> But this value needs to be ajusted according to species and varieties
#> file_plt.xml: be aware that jvc is from now a mandatory parameterand its value must be fixed !
#> for all varieties:
#> Sol