The workflow below describes all the steps required for:
Running it from within R
by using
the command line (cmd
) and
Importing and Analysing the
HYDRUS1D
results within R.
paths_list <- list(
exe_dir = system.file("extdata/model", package = "kwb.hydrus1d"),
model_name = "test",
model_dir = "<exe_dir>/<model_name>",
atmosphere = "<model_dir>/ATMOSPH.IN",
a_level = "<model_dir>/A_LEVEL.out",
t_level = "<model_dir>/T_LEVEL.out",
runinf = "<model_dir>/Run_Inf.out",
solute_id = 1L,
solute = "<model_dir>/solute<solute_id>.out"
)
paths <- kwb.utils::resolve(paths_list)