Skip to contents

Kill R session

Usage

kill(pid = Sys.getpid())

killAll()

Arguments

pid

integer(1). Process ID.

Note

Updated 2019-10-23.

See also

  • RStudio: Session > Restart R (Ctrl + Shift + F10)

  • https://github.com/vsbuffalo/dotfiles/blob/master/.Rprofile

Useful kill commands in shell:

  • pgrep rsession.

  • pkill rsession.

  • kill -WINCH <PID>.

Examples

## > kill()
## > killAll()