[R] removing a non empty directory

Phil Spector spector at stat.berkeley.edu
Fri Jun 11 19:24:04 CEST 2010


?unlink

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu


On Fri, 11 Jun 2010, mauede at alice.it wrote:

> I'd like to remove automatically a directory that may be non empty.
> I tried:
>> file.remove(NewDir, recursive=TRUE)
> [1] FALSE
> 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.
> Maura
>
>
> 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.
>



More information about the R-help mailing list