Updates the [Weather] node in an APSIM Next Generation model so the
FileName field points to the supplied weather file name.
apply_weather(apsimx, file)APSIM model object as returned by rapsimng::read_apsimx().
Character scalar path to a weather file.
A modified APSIM model object with updated weather file reference.
if (FALSE) { # \dontrun{
apsimx_path <- system.file("examples", "wheat.apsimx", package = "agrillm")
met_path <- system.file("examples", "wagga.met", package = "agrillm")
apsimx <- rapsimng::read_apsimx(apsimx_path)
updated <- apply_weather(apsimx, met_path)
} # }