> > invisible(lapply( list.files( "DeleteThis" ), function(x)
> > file.remove(paste("DeleteThis", x, sep="/" )) ))
>
> Oh, dear!  file.path() exists for a reason, and file.remove is
> vectorized.  Try
> file.remove(dir("DeleteThis", full.names=TRUE))

argh, very embarassing to have asked this...

;-(

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to