Skip to contents

Executes 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.

Value

Character vector of log entries from the SOP execution.

Details

The function requires an interactive R session and several packages (jsonlite, glue, rversions, devtools). It reads the SOP definition, prompts the user for approvals, and logs the process.