Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-12-04 Thread Henrik Bengtsson
...@gmail.com [mailto:jgrn...@gmail.com] On Behalf Of Jonathan Greenberg Sent: Saturday, September 28, 2013 10:51 AM To: William Dunlap Cc: r-help Subject: Re: [R] Error: C stack usage is too close to the limit when using list.files() Thanks all -- ok, so the symbolic link issue is a distinct

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-28 Thread Jonathan Greenberg
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of William Dunlap Sent: Friday, September 27, 2013 12:56 PM To: Jonathan Greenberg; r-help Subject: Re: [R] Error: C stack usage is too close to the limit when using list.files() Do

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-28 Thread Berend Hasselman
On 28-09-2013, at 19:51, Jonathan Greenberg j...@illinois.edu wrote: Thanks all -- ok, so the symbolic link issue is a distinct possibility, but fundamentally doesn't solve the issue since most users will have symbolic links on their machines SOMEPLACE, so a full drive scan will run into

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-28 Thread William Dunlap
Greenberg; r-help Subject: Re: [R] Error: C stack usage is too close to the limit when using list.files() Do you have some symbolic links that make loops in your file system? list.files() has problems with such loops and find does not. E.g., on a Linux box: % cd /tmp % mkdir dir

[R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread Jonathan Greenberg
R-helpers: I'm running a file search on my entire drive (Mac OS X) using: files_found - list.files(dir=/,pattern=somepattern,recursive=TRUE,full.names=TRUE) where somepattern is a search pattern (which I have confirmed via a unix find / -name somepattern only returns ~ 3 results). I keep

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread Ben Bolker
Jonathan Greenberg jgrn at illinois.edu writes: R-helpers: I'm running a file search on my entire drive (Mac OS X) using: files_found - list.files(dir=/,pattern=somepattern,recursive=TRUE,full.names=TRUE) where somepattern is a search pattern (which I have confirmed via a unix find /

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread Jonathan Greenberg
Ben: I'd like to avoid using that (previous version of my code solved it in that way) -- I would like cross-platform compatibility and I am pretty sure, along with Windows, vanilla Macs don't come with find either unless XCode has been installed. Is the list.files() code itself recursive when

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread William Dunlap
, 2013 12:13 PM To: r-help Subject: [R] Error: C stack usage is too close to the limit when using list.files() R-helpers: I'm running a file search on my entire drive (Mac OS X) using: files_found - list.files(dir=/,pattern=somepattern,recursive=TRUE,full.names=TRUE) where somepattern

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread Berend Hasselman
On 27-09-2013, at 21:50, Jonathan Greenberg j...@illinois.edu wrote: Ben: I'd like to avoid using that (previous version of my code solved it in that way) -- I would like cross-platform compatibility and I am pretty sure, along with Windows, vanilla Macs don't come with find either unless

Re: [R] Error: C stack usage is too close to the limit when using list.files()

2013-09-27 Thread William Dunlap
Dunlap Sent: Friday, September 27, 2013 12:56 PM To: Jonathan Greenberg; r-help Subject: Re: [R] Error: C stack usage is too close to the limit when using list.files() Do you have some symbolic links that make loops in your file system? list.files() has problems with such loops and find does