Replaces the existing [Soil] node in an APSIM Next Generation model using
a second APSIM file that contains a prepared soil configuration.
apply_soil(apsimx, file)APSIM model object as returned by rapsimng::read_apsimx().
Character scalar path to an APSIM file containing the soil node to insert.
A modified APSIM model object with the replacement soil node.
if (FALSE) { # \dontrun{
apsimx_path <- system.file("examples", "wheat.apsimx", package = "agrillm")
apsimx <- rapsimng::read_apsimx(apsimx_path)
updated <- apply_soil(apsimx, apsimx_path)
} # }