[R] Terminating a cmd windows from R

CALUM POLWART po|c1410 @end|ng |rom gm@||@com
Sat Aug 17 13:43:32 CEST 2024


cmd
taskkill /PID 1234

Will kill process 1234 if you know it id

So shell.exec can likely do this for you

On Sat, 17 Aug 2024, 12:31 Duncan Murdoch, <murdoch.duncan using gmail.com> wrote:

> On 2024-08-17 6:21 a.m., SIMON Nicolas via R-help wrote:
> > I would like to stop a dos shell windows following the cmd (execute)
> command. Is there a way to do that from R?
>
> I think you need to give more detail on what you are trying to do.  In
> Windows, "cmd" is supposed to open a shell window.   Could you show us
> an example of what you are doing?
>
> Duncan Murdoch
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list