[R] Unlink a directory with leading and trailing space
murdoch at stats.uwo.ca
Wed Jan 4 13:22:59 CET 2006
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().
More information about the R-help