Re: [R] Loading Rdata files in a Package

2010-07-25 Thread Prof Brian Ripley
From ?data 2. files ending ‘.RData’ or ‘.rda’ are ‘load()’ed. '.Rdata' (l/c 'd') files are not supported (although on case-insensitive file systems they will work in _some_ circumstances, but only some. Without the sessionInfo() output we asked for in the posting guide, we can only gu

Re: [R] Loading Rdata files in a Package

2010-07-25 Thread Charles C. Berry
On Sun, 25 Jul 2010, Andrew Leeser wrote: I have an .Rdata file saved in my "data" folder in a package I created. However, when I use the data() function it doesn't recognize that there any dataset exists within the package. Is there anything specific I need to do such that the data() function w

[R] Loading Rdata files in a Package

2010-07-25 Thread Andrew Leeser
I have an .Rdata file saved in my "data" folder in a package I created. However, when I use the data() function it doesn't recognize that there any dataset exists within the package. Is there anything specific I need to do such that the data() function will load my dataset? Thanks in advance,

Re: [R] loading .Rdata files

2009-06-20 Thread jim holtman
also use 'try' to capture the error and continue On Sat, Jun 20, 2009 at 12:57 AM, Erin Hodgess wrote: > Dear R People: > > I'm loading several thousand .Rdata files in sequence. > > If one of them is empty, the function crashes. > > I am thinking about using system(wc ) etc., and strsplit for th

[R] loading .Rdata files please ignore

2009-06-19 Thread Erin Hodgess
Nothing like posting to the list to make you find an answer! file.info does the trick for file size! Thanks anyway, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodg...@gmail.com __

[R] loading .Rdata files

2009-06-19 Thread Erin Hodgess
Dear R People: I'm loading several thousand .Rdata files in sequence. If one of them is empty, the function crashes. I am thinking about using system(wc ) etc., and strsplit for the results, but was wondering if there is a more clever way via a file type command, please. Thanks, Erin -- Erin