[R] removing a non empty directory

From: <mauede_at_alice.it>
Date: Fri, 11 Jun 2010 16:28:49 +0200

I'd like to remove automatically a directory that may be non empty. I tried:
> file.remove(NewDir, recursive=TRUE)

Warning message:
In file.remove(NewDir, recursive = TRUE) :   cannot remove file 'Prostate_Validated_mirWalk', reason 'Directory not empty'

Is there another command to remove entire directories including their contents ? Thank you.

tutti i telefonini TIM!

        [[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 11 Jun 2010 - 14:31:31 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 11 Jun 2010 - 17:30:30 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