[R] cmd shell

From: elyakhlifi mustapha <elyakhlifi_mustapha_at_yahoo.fr>
Date: Fri, 14 Mar 2008 10:52:46 +0000 (GMT)

I have a problem with shell langage.
To delete a not empty directory using the OS shell I have to do like this:  

rd /s dossier1  

and dossier1 contain an other directory dossier2. But when I use the function shell like this:  

shell(paste("rd /s",shQuote("dossier1",type="cmd")))  

it doesn't work.
And the console displays that:  

dossier1, ˆtes-vous s–r (O/N)?
Warning message:
In shell(paste("rd /s", shQuote("dossier1", type = "cmd"))) :   l'exécution de 'cmd' a échoué avec le code d'erreur 1  

Can you help me please?


        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 14 Mar 2008 - 11:46:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 14 Mar 2008 - 12:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive