Learn R Programming

Certara.RDarwin (version 1.1.1)

stop_pyDarwin: Stop pyDarwin Model Search

Description

This function stops a pyDarwin model search.

Usage

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

Value

Returned code of system2() call.

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.

Examples

Run this code
if (FALSE) {
stop_pyDarwin(
  InterpreterPath = "~/darwin/venv/bin/python",
  DirectoryPath = "~/project_folder")
}

Run the code above in your browser using DataLab