This function uses basically Stics through his JavaStics command line interface
run_javastics(
javastics,
workspace = NULL,
usm = NULL,
keep_history = TRUE,
optim = FALSE,
verbose = TRUE,
stics_exe = "modulostics",
java_cmd = "java",
javastics_path = lifecycle::deprecated(),
workspace_path = lifecycle::deprecated(),
usms_list = lifecycle::deprecated()
)
Path of JavaStics
Path of a JavaStics workspace
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 value (optional) to keep a copy of history file
use TRUE
(default), FALSE
otherwise
Logical value (optional), TRUE
to force code_optim value to 1,
FALSE
otherwise (default)
Logical value for displaying information while running
The name, executable or path of the stics executable to use (optional, default to "modulostics", see details)
The java virtual machine command name or executable path
javastics_path
is no longer supported, use javastics
instead.
workspace_path
is no longer supported, use workspace
instead.
A list in which each element contains: usm "name", "error" status (logical) and an output "message" (JavaStics commandline execution output)
stics_exe
may be :
a model name pointing to a stics executable as done in JavaStics, e.g.
"modulostics" for stics_modulo.exe
, the standard version of the model
shipping with JavaStics;
a stics executable file available from the bin folder in JavaStics, e.g. "stics_modulo.exe";
a path to a stics executable file, eg.
"C:/Users/username/Desktop/stics.exe". NB: this file cannot be named
stics_modulo.exe
because it is the name of the standard STICS shipping
with JavaStics (overwriting is not allowed).
if (FALSE) {
run_javastics("/path/to/JavaSTICS/folder", "example")
run_javastics("/path/to/JavaSTICS/folder", "/path/to/workspace")
run_javastics("/path/to/JavaSTICS/folder", "example", c("wheat", "pea"))
run_javastics("/path/to/JavaSTICS/folder", usm = c("wheat", "pea"))
run_javastics("/path/to/JavaSTICS/folder",
usm = c("wheat", "pea"), optim = TRUE)
}