[Rd] typo in R-lang.texi

2007-02-25 Thread Stephen Eglen
Hi, R-lang.texi line 2020/1 currently says: This allows, e.g., a local variable in a function to have the same name AS a global object. The word "AS" is missing in that sentence. (Line number according to https://svn.r-project.org/R/trunk/doc/manual/R-lang.texi) Stephen __

[Rd] slow graphics on MAC OS X R-2.4.1 (PR#9530)

2007-02-25 Thread felix . naef
We use R a lot for graphics and noticed very slow graphics in Quartz mode where X11 is much faster. Our hardware: intel mac pro and intel macbook pro, both are affected. os versions: OS X Tiger 10.4.8 R version: R version 2.4.1 (2006-12-18) We tried the following simple thing. - Open the R pr

Re: [Rd] Depending on many packages: another best practice question

2007-02-25 Thread hadley wickham
On 2/24/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > On Sat, 24 Feb 2007, hadley wickham wrote: > > >> > ggplot currently requires 13 packages (grid, reshape, RColorBrewer, > >> > proto, splines, MASS, Hmisc, boot, butler, hexbin, mapproj, quantreg, > >> > sm). Some of these are absolutely n

Re: [Rd] Depending on many packages: another best practice question

2007-02-25 Thread Gabor Grothendieck
You can use if(require(myPackage)) { ... } or \dontrun{ ... } or make them demos in the myPackage/demo directory since demos are not checked. On 2/25/07, hadley wickham <[EMAIL PROTECTED]> wrote: > On 2/24/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > On Sat, 24 Feb 2007, hadley wickh

[Rd] R/C++/memory leaks

2007-02-25 Thread Ernest Turro
Dear all, I have wrapped a C++ function in an R package. I allocate/deallocate memory using C++ 'new' and 'delete'. In order to allow user interrupts without memory leaks I've moved all the delete statements required after an interrupt to a separate C++ function freeMemory(), which is call

Re: [Rd] Depending on many packages: another best practice question

2007-02-25 Thread Seth Falcon
"Gabor Grothendieck" <[EMAIL PROTECTED]> writes: > You can use > > if(require(myPackage)) { ... } Probably you will want: if (suppressWarnings(require("somePkg"))) { ... } This way, you won't get a lot of noise when somePkg isn't installed. Running the examples at least some of the time seem

Re: [Rd] R/C++/memory leaks

2007-02-25 Thread Ross Boylan
On Sun, Feb 25, 2007 at 05:37:24PM +, Ernest Turro wrote: > Dear all, > > I have wrapped a C++ function in an R package. I allocate/deallocate > memory using C++ 'new' and 'delete'. In order to allow user > interrupts without memory leaks I've moved all the delete statements > required a

Re: [Rd] R/C++/memory leaks

2007-02-25 Thread Ernest Turro
On 25 Feb 2007, at 22:21, Ross Boylan wrote: > On Sun, Feb 25, 2007 at 05:37:24PM +, Ernest Turro wrote: >> Dear all, >> >> I have wrapped a C++ function in an R package. I allocate/deallocate >> memory using C++ 'new' and 'delete'. In order to allow user >> interrupts without memory leaks I'

[Rd] Edits of R-exts.texi

2007-02-25 Thread Brett Presnell
I have attached a patch (svn diff) containing some edits of R-exts.texi to fix minor grammatical errors (I changed a lot of "which"s to "that"s) and to improve readability (I hope). When unsure, I have tried to avoid making changes that might affect meaning, so I hope that this patch will not be

Re: [Rd] Edits of R-exts.texi

2007-02-25 Thread Brett Presnell
Somehow I managed to copy an older version of my edits before running "svn diff", so please ignore my last message. I will fix this and resubmit. Sorry for the bother. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Edits of R-exts.texi (2nd try)

2007-02-25 Thread Brett Presnell
I believe that I have this straight now. I have attached a patch (svn diff) containing some edits of R-exts.texi to fix minor grammatical errors (I changed a lot of "which"s to "that"s) and to improve readability (I hope). There's nothing technical in these changes, and when unsure, I have tried

Re: [Rd] R/C++/memory leaks

2007-02-25 Thread Ross Boylan
Here are a few small follow-up comments: On Sun, Feb 25, 2007 at 11:18:56PM +, Ernest Turro wrote: > > On 25 Feb 2007, at 22:21, Ross Boylan wrote: > > >On Sun, Feb 25, 2007 at 05:37:24PM +, Ernest Turro wrote: > >>Dear all, > >> > >>I have wrapped a C++ function in an R package. I alloca