Skip to contents

Stops the Julia processes ctJuliaProcesses lists. By default only those left by R sessions that have ended, which nothing can be using.

Usage

ctJuliaKill(
  which = c("orphaned", "session", "workers", "mine", "all"),
  pid = NULL,
  ask = interactive()
)

Arguments

which

Which to stop: "orphaned" (the default) for processes whose R session has ended; "session" for this R session's engine, which the next julia call replaces with a new one (losing what it had compiled); "workers" for this session's sampling workers – the pool of background R sessions that sampling with processes = TRUE warms and keeps for the next call, released here with their Julia processes; "mine" for all three; "all" for every process listed, including the engines of other running R sessions, which then fail.

pid

Process ids to stop instead of choosing by which. Only processes ctJuliaProcesses() lists can be stopped this way.

ask

Whether to ask before stopping another R session's engine, as which = "all" or pid can.

Value

The rows of ctJuliaProcesses() that were stopped, invisibly.

See also

Examples

# \donttest{
ctJuliaKill()             # engines left by R sessions that have ended
ctJuliaKill("session")    # this session's engine, e.g. stuck compiling
# }