Re: [R] Unlink a directory with leading and trailing space

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Wed 04 Jan 2006 - 23:22:59 EST

On 1/3/2006 11:01 AM, Mike White wrote:
> Using paste without defining a separator to generate a directory name for
> dir.create, I have inadvertently created a directory with a leading and
> trailing space. I cannot now delete this directory with unlink or from
> Windows explorer. Any help deleting this directory would be appreciated.

What name did you end up with? I don't have any problem removing the directory " test " just by right-clicking and choosing Delete. You can also open a command window, and put the name in quotes, e.g.

rmdir " test "

I do see the problem in unlink().

Duncan Murdoch



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 Received on Wed Jan 04 23:37:08 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:48 EST