run_stics: Running usm(s) from a/several directory(ies) or a/several...

View source: R/run_stics.R

run_sticsR Documentation

Running usm(s) from a/several directory(ies) or a/several subdirectory(ies) named with usm name

Description

This function uses Stics directly through a system call

Usage

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()
)

Arguments

stics_exe

Path of Stics the executable file

workspace

Path of the workspace containing the Stics (txt) input files

usm

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.

check

Logical, T for checking the model executable, F otherwise

verbose

Logical value (optional), TRUE to display usms names, FALSE otherwise (default)

model_path

[Deprecated] model_path is no longer supported, use stics_exe instead.

data_dir

[Deprecated] data_dir is no longer supported, use workspace instead.

usm_dir_names

[Deprecated] usm_dir_names is no longer supported, use usm instead.

check_exe

[Deprecated] check_exe is no longer supported, use check instead.

display

[Deprecated] display is no longer supported, use verbose instead.

Value

A list with usm names and execution error status

Examples

## Not run: 

# 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",
)

## End(Not run)


SticsRPacks/SticsOnR documentation built on April 19, 2024, 9:47 p.m.