[Rd] A memory management question

2005-09-03 Thread dhinds
Can someone explain the use of SETLENGTH() and SETTRUELENGTH()? I would like to allocate a vector and reserve some space at the end, so that it appears shorter than the allocated size. So that I can more efficiently append to the vector, without requiring a new copy every time. So I'd like to use

[Rd] tapply

2005-09-03 Thread Erich Neuwirth
compared to by tapply has the nice property that the output is a multidimensional array. But in its standard form it only accepts one vector, a list of factors, and a function of one argument. Then it splits the vector according to the factor(s) and applies the function to each of subsets created b

Re: [Rd] RFC: rawConnection (was "loop connections")

2005-09-03 Thread dhinds
Duncan Murdoch <[EMAIL PROTECTED]> wrote: > Probably! The differences I still know about are: > - I'd like the name to reflect the data source, so rawConnection or > something similar rather than overloading textConnection. > - It needs a man page, or to be included on the textConnection m

Re: [Rd] R CMD BATCH on scripts without trailing newline

2005-09-03 Thread Martin Maechler
> "MM" == Martin Maechler <[EMAIL PROTECTED]> > on Thu, 1 Sep 2005 13:39:52 +0200 writes: > "StEgl" == Stephen Eglen <[EMAIL PROTECTED]> > on Thu, 1 Sep 2005 12:09:15 +0100 writes: StEgl> If the last line of an R script does not have a StEgl> trailing newline, a sm

Re: [Rd] R CMD check and interfacing packages

2005-09-03 Thread Gabor Grothendieck
On 9/3/05, Uwe Ligges <[EMAIL PROTECTED]> wrote: > Gabor Grothendieck wrote: > > > For an R package whose purpose is to interface to other software, > > since such other software is not necessarily being on CRAN how does one > > proceed so that the R package can pass 'R CMD check'? None > > of th

Re: [Rd] R CMD check and interfacing packages

2005-09-03 Thread Uwe Ligges
Gabor Grothendieck wrote: > For an R package whose purpose is to interface to other software, > since such other software is not necessarily being on CRAN how does one > proceed so that the R package can pass 'R CMD check'? None > of the examples or demos in the package can run without the soft