phtm_kill: Kill PhantomJS Processes

Description Usage Arguments Value

View source: R/phantom.R

Description

phtm_kill() kills PhantomJS processes that are children (or descendants) of a given parent process. This is useful for shutting down orphaned PhantomJS processes.

Usage

1
phtm_kill(parent = ps::ps_handle(), excl = NULL, recursive = FALSE)

Arguments

parent

The parent process of the PhantomJS processes to kill; the default is the current R process

excl

PhantomJS processes to keep alive. Either a list containing a PhantomJS process object, a PhantomJS process object, a PhantomJS ps object, or a list containing multiple of these objects, all of the same type.

recursive

Boolean. Should phtm_kill() kill all PhantomJS descendants of parent or only children?

Value

An integer number of PhantomJS processes killed


jesse-smith/nbscar documentation built on Dec. 20, 2021, 11:05 p.m.