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

2013-12-04 Thread Henrik Bengtsson
o.com > > >> -Original Message- >> From: jgrn...@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

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

2013-09-28 Thread William Dunlap
ORTANT_2 > > find: File system loop detected; `dir/subdir/linkToUpperDir' is part of the > > same file > system loop as `dir'. > > dir/IMPORTANT_1 > > > > Bill Dunlap > > Spotfire, TIBCO Software > > wdunlap tibco.com > > > > > &g

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 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 these issues --

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

2013-09-28 Thread Jonathan Greenberg
detected; `dir/subdir/linkToUpperDir' is part of the > same file system loop as `dir'. > dir/IMPORTANT_1 > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-h

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

2013-09-27 Thread William Dunlap
o: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 you have some symbolic links that make l

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 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 XCode has

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

2013-09-27 Thread William Dunlap
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 dir/subdir % cd dir/subdir % ln -s ../../dir linkToUpperDir % cd /tmp % R --quiet > list.files("dir", recursive=TRUE, ful

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 u

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

2013-09-27 Thread Ben Bolker
Jonathan Greenberg 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 "fin