Re: [Rd] How to get R to compile with PNG support

2011-04-20 Thread Sharpie
Dear R devel list, Good morning; I'm with the Sage (http://www.sagemath.org) project. (Some of you might have seen my talk on this at last summer's useR conference). Thanks for stoping by Karl! I have to say that I am a big fan of the Sage project---it is a very good idea and I really

Re: [Rd] Sweave tokens not in column 1: enhancement request

2011-04-20 Thread Friedrich Leisch
On Tue, 19 Apr 2011 13:59:44 -0700 (PDT), David Epstein (DE) wrote: When I re-use a code chunk in Sweave, together with keep.source=TRUE, I would like to follow usual programming conventions in which the amount of white space on the left indicates logical structure. It seems that one

Re: [Rd] self-referential representations in S4

2011-04-20 Thread John Chambers
The warning is there because all is not just fine, in general and in particular not in your example. If a superclass is not virtual, the prototype object for the new class must have a member of that class in the appropriate slot. How could it do so in this case? As a result, your class will

[Rd] Make as.factor an S3 generic?

2011-04-20 Thread Martin Morgan
as.factor / as.ordered is not written as a generic. This differs from as.numeric, as.matrix, and other as.*. The following seems to address this and does not break make check-all. FWIW, the patch is against r55563, because with r55564 I see /home/mtmorgan/src/R-devel/src/main/dounzip.c:75:15:

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread William Dunlap
-Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Martin Morgan Sent: Wednesday, April 20, 2011 9:56 AM To: R-devel@r-project.org Subject: [Rd] Make as.factor an S3 generic? as.factor / as.ordered is not written as a

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Sharpie
Duncan Murdoch-2 wrote: I have just committed some code to the rgl package on https://r-forge.r-project.org/projects/rgl/ to allow rgl images to be inserted into Sweave documents. (This is not in the CRAN version yet.) It makes use of the custom graphics driver support added by Brian

Re: [Rd] Patching update.packages to enable updating of only a user defined subset of packages

2011-04-20 Thread Sharpie
Tal Galili wrote: Hello dear R developers, I recently found out that it is not possible to limit update.packages() to update only a few packages at a time. The patch offered simply adds a 'subset' parameter and the statement bounded within if(!missing(subset)) to implement it. The

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Dominick Samperi
On Tue, Apr 19, 2011 at 2:18 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: I have just committed some code to the rgl package on https://r-forge.r-project.org/projects/rgl/ to allow rgl images to be inserted into Sweave documents.  (This is not in the CRAN version yet.)  It makes use of

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Duncan Murdoch
On 20/04/2011 1:52 PM, Dominick Samperi wrote: On Tue, Apr 19, 2011 at 2:18 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: I have just committed some code to the rgl package on https://r-forge.r-project.org/projects/rgl/ to allow rgl images to be inserted into Sweave documents. (This

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Duncan Murdoch
On 20/04/2011 1:28 PM, Sharpie wrote: Duncan Murdoch-2 wrote: I have just committed some code to the rgl package on https://r-forge.r-project.org/projects/rgl/ to allow rgl images to be inserted into Sweave documents. (This is not in the CRAN version yet.) It makes use of the custom

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread Prof Brian Ripley
Well, lots of functions are not generic. We do ask you to give a case for such changes ... where is it? On Wed, 20 Apr 2011, Martin Morgan wrote: as.factor / as.ordered is not written as a generic. This differs from as.numeric, as.matrix, and other as.*. The following seems to address this

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread Martin Morgan
On 04/20/2011 10:13 AM, William Dunlap wrote: -Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Martin Morgan Sent: Wednesday, April 20, 2011 9:56 AM To: R-devel@r-project.org Subject: [Rd] Make as.factor an S3 generic? as.factor

Re: [Rd] Make as.factor an S3 generic?

2011-04-20 Thread Martin Morgan
On 04/20/2011 11:38 AM, Prof Brian Ripley wrote: Well, lots of functions are not generic. We do ask you to give a case for such changes ... where is it? The specific need started with base::lapply, which calls base::as.list. An S4 method as.list,A-method defined in a name space isn't seen by

[Rd] possible minor bug in fisher.test

2011-04-20 Thread Fay, Michael (NIH/NIAID) [E]
Hi, I received a bug report for my exact2x2 package that seems to apply to fisher.test in the stats package also. Here is some code which creates the error: x-factor(c(0,1,1),levels=c(0,1)) y-factor(c(1,1,1),levels=c(0,1)) fisher.test(x,y) Error in fisher.test(x, y) : 'x' and 'y' must have

Re: [Rd] possible minor bug in fisher.test

2011-04-20 Thread peter dalgaard
On Apr 20, 2011, at 21:30 , Fay, Michael (NIH/NIAID) [E] wrote: Hi, I received a bug report for my exact2x2 package that seems to apply to fisher.test in the stats package also. Here is some code which creates the error: x-factor(c(0,1,1),levels=c(0,1))

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Dominick Samperi
On Wed, Apr 20, 2011 at 2:29 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 20/04/2011 1:52 PM, Dominick Samperi wrote: On Tue, Apr 19, 2011 at 2:18 PM, Duncan Murdoch murdoch.dun...@gmail.com  wrote:  I have just committed some code to the rgl package on  

Re: [Rd] Sweave support added to rgl package

2011-04-20 Thread Duncan Murdoch
On 20/04/2011 7:10 PM, Dominick Samperi wrote: On Wed, Apr 20, 2011 at 2:29 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 20/04/2011 1:52 PM, Dominick Samperi wrote: On Tue, Apr 19, 2011 at 2:18 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote: I have just committed some code