[R] Terminating a program using R

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Feb 10 15:28:48 CET 2015


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 favourite OS utility to do this.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford
1 South Parks Road, Oxford OX1 3TG, UK



More information about the R-help mailing list