On 7/20/2005 7:25 AM, Gabor Grothendieck wrote:> Is there an R function to kill a process? I found one in package
> fork but it is specific to UNIX and I want something that also
> works on Windows. The XP console command, taskkill,
> will do it so I can easily get the effect but it won't work
> on other Windows systems, even 2000 and NT. I found a free utility
> pskill.exe by googling around that does work across 2000/NT/XP
> but was still wondering about something more general in R.
There's no such thing in base R, as far as I know. Killing a process is
complicated, and I think the procedure is quite different in Unix and
Windows. You want to give the process a chance at a clean shutdown if
possible.
Duncan Murdoch