R/run_stics.R
run_stics.Rd
This function uses Stics directly through a system call
run_stics(
stics_exe,
workspace,
usm = NULL,
check = TRUE,
verbose = FALSE,
model_path = lifecycle::deprecated(),
data_dir = lifecycle::deprecated(),
usm_dir_names = lifecycle::deprecated(),
check_exe = lifecycle::deprecated(),
display = lifecycle::deprecated()
)
Path of Stics the executable file
Path of the workspace containing the Stics (txt) input files
Vector of USM names. Optional, if provided, the function runs only the given USMs. If not provided, the function runs all the USMs included in workspace.
Logical, T for checking the model executable, F otherwise
Logical value (optional), TRUE to display usms names, FALSE otherwise (default)
A list with usm names and execution error status
if (FALSE) {
# Specifying individual usm directories
run_stics("/home/username/bin/Stics", "/home/username/Work/SticsInputsDir")
run_stics("/home/username/bin/Stics", c(
"/home/username/Work/SticsInputsDir1",
"/home/username/Work/SticsInputsDir2"
))
# Specifying a parent directory of usms directories
# running one or several usms
run_stics("/home/username/bin/Stics",
"/home/username/Work/SticsInputsRootDir", "wheat")
run_stics(
"/home/username/bin/Stics", "/home/username/Work/SticsInputsRootDir",
c("wheat", "maize")
)
# running all usms
run_stics(
"/home/username/bin/Stics", "/home/username/Work/SticsInputsRootDir",
)
}