Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

proc_kill

Kill a process and (optionally) all its child processes


Description

Run the command taskkill /f /pid on Windows and kill on Unix, respectively, to kill a process.

Usage

proc_kill(pid, recursive = TRUE, ...)

Arguments

pid

The process ID.

recursive

Whether to kill the child processes of the process.

...

Arguments to be passed to system2() to run the command to kill the process.

Value

The status code returned from system2().


xfun

Miscellaneous Functions to Support Packages Maintained by 'Yihui Xie'

v0.22
MIT + file LICENSE
Authors
Yihui Xie [aut, cre, cph] (<https://orcid.org/0000-0003-0645-5666>), Wush Wu [ctb], Daijiang Li [ctb], Xianying Tan [ctb], Salim Brüggemann [ctb] (<https://orcid.org/0000-0002-5329-5987>), Christophe Dervieux [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.