Skip to content

list.files fails with all.files = TRUE and recursive = TRUE (PR#7102)

1 message · Roger D. Peng

#
I get different behavior on Linux:

system("mkdir newdir")
dir("newdir", all.files = TRUE, recursive = TRUE)  ## R hangs
## After hitting Ctrl-C
There were 50 or more warnings (use warnings() to see the first 50)
 > dir("newdir", all.files = TRUE, recursive = TRUE)
character(0)
Warning message:
list.files: newdir is not a readable directory

After hitting Ctrl-C the first time, dir() doesn't hang but it 
produces the warning.

 > version
          _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    1
minor    9.1
year     2004
month    06
day      21
language R

-roger
joehl@gmx.de wrote: