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. Thanks Mike White
Duncan Murdoch
2006-Jan-04 12:22 UTC
[R] Unlink a directory with leading and trailing space
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