Hello.
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?


      
_____________________________________________________________________________ 

ttp://mail.yahoo.fr
        [[alternative HTML version deleted]]

______________________________________________
R-help@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.
  • [R] cmd shell elyakhlifi mustapha

Reply via email to