GenericRunner: GenericRunner

GenericRunnerR Documentation

GenericRunner

Description

A simplified way to call executable / shell commands from within R code.

Usage

GenericRunner(
  command = "echo",
  param = list(threads = 4, mem = 120),
  RunInTmp = F,
  FlgType = "-",
  AsType = " ",
  ...
)

Arguments

command

Command to call (if notin path, provide the full path to the binary).

param

Flags/parameters to pass to the command. Formatted as a named list, e.g. "flag" = "value".

RunInTmp

Should the command be called from a temporary folder made inside the current working directory?

FlgType

How should the flags (from "params") be passed to the command? character, e.g. "-", "–"

AsType

How should the values of flags (from "params") be joined with the flags? character, e.g. "=", " "

Examples

GenericRunner

UriNeri/NeriMisc documentation built on Aug. 13, 2022, 4:37 p.m.