Description Usage Arguments Value Examples
This function will call the gadget command with the given switches as arguments
1 2 |
switches |
List of named switches to supply to Gadget executable.
Names correspond to the switch; values correspond to additional arguments.
If no argument is needed the value should be logical |
path |
Optional. Character vector of path to the directory where Gadget files are located |
gadget_exe |
The Gadget executable to use |
print_out |
Logical. Should Gadget command line output be printed. |
print_err |
Logical. Should Gadget command line errors be printed. |
If print_out = TRUE
or print_err = TRUE
, a character vector giving the output
of the command, one line per string, else nothing
1 2 3 4 | path <- system.file(gad_mod_dir, package = "gadgetSim")
call_gadget(switches = list(s = TRUE, i = "params.in", log = "logfile"), path = path)
call_gadget(switches = list(s = TRUE, i = "WGTS/params.final", main = "WGTS/main.final"),
path = path)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.