
Run a Standard Operating Procedure (SOP)
runSOP.RdExecutes a Standard Operating Procedure (SOP) defined in a JSON file, interactively guiding the user through each step, logging approvals, and displaying help as needed.
Usage
runSOP(
sopFile,
...,
user = getSystemUserName(),
pkg = ".",
width = getOption("width", 80),
pkgVersion = NULL
)Arguments
- sopFile
Path to the SOP definition JSON file.
- ...
Additional arguments (currently unused).
- user
Name of the user running the SOP. Defaults to the system user.
- pkg
Path to the package directory. Defaults to the current directory.
- width
Output width for formatting. Defaults to the value of
getOption("width", 80).- pkgVersion
Optional package version. If
NULL, determined automatically.