Re: [Rd] help with eval()

2011-04-19 Thread peter dalgaard
On Apr 19, 2011, at 07:16 , Prof Brian Ripley wrote: On Mon, 18 Apr 2011, Duncan Murdoch wrote: On 11-04-18 5:51 PM, Terry Therneau wrote: I've narrowed my scope problems with predict.coxph further. Here is a condensed example: fcall3- as.formula(time ~ age) dfun3- function(dcall) {

Re: [Rd] Dangerous Bug with IF function of R

2011-04-19 Thread Martin Maechler
salmajj salm...@softhome.net on Mon, 18 Apr 2011 11:11:28 -0700 (PDT) writes: Thanks a lot Petr it works!!! of course .. You know for someone who is used to work with matlab it is not so obvious:) well, what do you mean with that? I'm intrigued. After such a blatantly wrong

Re: [Rd] Dangerous Bug with IF function of R

2011-04-19 Thread Robert Lowe
I'm intrigued. After such a blatantly wrong claim about a bug in R... what exactly are you claiming about Matlab here? That it implements (software) decimal arithmetic on top of the cpu-internal binary arithmetic ? probably rather not ... Just for confirmation the same thing doesn't

[Rd] An update of the Distribustions man page

2011-04-19 Thread Christophe Dutang
Dear list, I would like to suggest a small update the ?Distributions man page of the stats package. The current version contains the following line. The CRAN package \pkg{SuppDists} for additional distributions. I think it would be better to put in this man page a link to the CRAN task view

[Rd] Sweave support added to rgl package

2011-04-19 Thread Duncan Murdoch
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 Ripley. In R-devel (which will

[Rd] self-referential representations in S4

2011-04-19 Thread James Bullard
I'm trying to do the following: setClass(MyNode, representation(parent = MyNode)) [1] MyNode Warning message: undefined slot classes in definition of MyNode: parent(class MyNode) I scanned the docs, but found nothing. The representation function has no problem, it's the setClass function which

[Rd] Package Name Not Found Warning

2011-04-19 Thread Dario Strbenac
Hello, I've got a DESCRIPTION file with a the first line: Package: Repitools But, when I run R CMD INSTALL Repitools I get: * installing *source* package Repitools ... ** R ** data ** inst ** preparing package for lazy loading Warning in FUN(X[[1L]], ...) : Created a package name, 2011-04-20

Re: [Rd] Package Name Not Found Warning

2011-04-19 Thread Martin Morgan
On 04/19/2011 05:00 PM, Dario Strbenac wrote: Hello, I've got a DESCRIPTION file with a the first line: Package: Repitools But, when I run R CMD INSTALL Repitools I get: * installing *source* package Repitools ... ** R ** data ** inst ** preparing package for lazy loading Warning in

Re: [Rd] Package Name Not Found Warning

2011-04-19 Thread Dario Strbenac
Ah, I think it's happening because I have setOldClass(AffymetrixCelSet) in my package. I guess I need to use there where argument. But how do I have this call outside any S4 functions, but without having to load aroma.affymetrix when my package loads ? Original message Date: Tue,

Re: [Rd] Package Name Not Found Warning

2011-04-19 Thread Martin Morgan
On 04/19/2011 08:00 PM, Dario Strbenac wrote: Ah, I think it's happening because I have setOldClass(AffymetrixCelSet) in my package. if AffymetrixCelSet is from aroma.affymetrix, then the line above results in setOldClass(AffymetrixCelSet) Error in x[length(x):1L] : object of type 'closure'

Re: [Rd] Package Name Not Found Warning

2011-04-19 Thread Dario Strbenac
Ah yes, I found it now. I had the exact same setOldClass statement at the top of 2 different R files. Having it in the first collated one solves my problem. Original message Date: Tue, 19 Apr 2011 20:29:40 -0700 From: Martin Morgan mtmor...@fhcrc.org Subject: Re: [Rd] Package Name