Skip to contents

This function stops a pyDarwin model search.

Usage

stop_pyDarwin(
  InterpreterPath,
  Flags = c("-u", "-m"),
  ForceStop = FALSE,
  DirectoryPath = "."
)

Arguments

InterpreterPath

Path to the Python interpreter executable.

Flags

Flags to pass to the Python interpreter. Refer to Python documentation for details. Note that -m is essential (runs library module as a script and terminates option list).

ForceStop

Logical. If TRUE, -f flag is added to force stop search immediately.- Default is FALSE.

DirectoryPath

the DirectoryPath argument of run_pyDarwin() or the parent folder of options file passed to that function. Default is current working directory.

Value

Returned code of system2() call.

Examples

if (FALSE) { # \dontrun{
stop_pyDarwin(
  InterpreterPath = "~/darwin/venv/bin/python",
  DirectoryPath = "~/project_folder")
} # }