Re: [R] Terminating a program using R

2015-02-12 Thread S Ellison
> I would like to query that if it is possible for R to terminate a program > such as > notepad, word, etc.? pskill from the tools package says it supports the Windows system call 'TerminateProcess'. You can get a process's ID using the windows command line 'tasklist'. I got this to work on my

Re: [R] Terminating a program using R

2015-02-10 Thread Prof Brian Ripley
On 10/02/2015 07:55, Ssuhanchen wrote: Hi I would like to query that if it is possible for R to terminate a program such as notepad, word, etc.? If yes, what kind of function should I use? The POSIX way to do this is to use 'kill', so try ??kill in your R process or use system() to call your

[R] Terminating a program using R

2015-02-10 Thread Ssuhanchen
Hi I would like to query that if it is possible for R to terminate a program such as notepad, word, etc.? If yes, what kind of function should I use? Thank you very much. -- View this message in context: http://r.789695.n4.nabble.com/Terminating-a-program-using-R-tp4703004.html Sent from th