Re: [R] Globbing inconsistencies, dir() vs. unlink()

2010-11-17 Thread Henrik Bengtsson
Hi, note that to expand tilde, there is also path.expand() which should give less surprises than Sys.glob(). I can confirm that this is not only Windows, but also on Linux; dir(~/ttt) [1] foo.txt unlink(~/ttt, recursive=TRUE) dir(~/ttt) [1] foo.txt unlink(path.expand(~/ttt), recursive=TRUE)

[R] Globbing inconsistencies, dir() vs. unlink()

2010-10-04 Thread Ken Williams
I was trying to remove a directory and couldn't figure out why it was failing: dir(~/p4/r-packages/IREval/Users, recursive=T) [1] u0048513/p4/r-packages/IREval/DESCRIPTION [2] u0048513/p4/r-packages/IREval/R/IREval.R [3] u0048513/p4/r-packages/IREval/Read-and-delete-me [4]