The input file according to his type (ini,plant,tec,station,soil,par) is converted to a text file readable by the STICS model (ficini.txt, ficplt1.txt,...)
convert_xml2txt(
file,
plant_id = 1,
soil_name = NULL,
out_dir = NULL,
save_as = NULL,
stics_version = "latest",
xml_file = lifecycle::deprecated(),
plt_num = lifecycle::deprecated(),
out_file = lifecycle::deprecated()
)
Path (including name) of the xml file to convert
The plant identifier (main crop: 1 ; associated crop: 2)
Soil name (optional, required for soil file)
Path of the directory where to generate the file. Optional, set to the path of the input xml file by default
Name of the output file (optional, default: fixed name for STICS)
the STICS files version to use (optional, default to latest).
None
if (FALSE) { # \dontrun{
xml_path <- "/path/to/corn_plt.xml"
javastics_path <- "/path/to/JavaSTICS/folder"
convert_xml2txt(file = xml_path, javastics = javastics_path)
} # }