[Rd] S4 dispatch and S3 "connection" objects

2009-12-14 Thread Romain Francois
Hello, I'm trying to get S4 dispatch on S3 "connection" objects. So I do : setOldClass( "connection" ) and then : setGeneric( "bling", function(object) standardGeneric( "bling" ) ) setMethod( "bling", "connection", function(object) cat( "gotcha ", as.integer(object), "\n" ) ) but I get :

Re: [Rd] Accuracy (PR#14139)

2009-12-14 Thread savicky
On Mon, Dec 14, 2009 at 06:10:16PM +0100, ber...@lycos.com wrote: > > > pnorm(1.35,0,1) > [1] 0.911492 > > pnorm(1.36,0,1) > [1] 0.913085 > > > options(digits=4) > > > pnorm(1.35,0,1) > [1] 0.9115 > > pnorm(1.36,0,1) > [1] 0.913 rounding error? The technical explanation is as follows.

Re: [Rd] Accuracy (PR#14139)

2009-12-14 Thread Petr Savicky
On Mon, Dec 14, 2009 at 06:10:16PM +0100, ber...@lycos.com wrote: > > > pnorm(1.35,0,1) > [1] 0.911492 > > pnorm(1.36,0,1) > [1] 0.913085 > > > options(digits=4) > > > pnorm(1.35,0,1) > [1] 0.9115 > > pnorm(1.36,0,1) > [1] 0.913 rounding error? The technical explanation is as follows.

Re: [Rd] New version weighted mean differs from the old one (PR#14142)

2009-12-14 Thread Charles C. Berry
This was PR#14032. Fixed in R.10.1. On Mon, 14 Dec 2009, huh...@dreamwiz.com wrote: Full_Name: Myung-Hoe Huh Version: 2.10 OS: Windows Submission from: (NULL) (116.120.84.194) New Version (2.10.0) weighted mean produces unreasonable result: see below. wt <- c(5, 5, 4, 1)/15 x <

Re: [Rd] as.data.frame requires a lot of memory (PR#14140)

2009-12-14 Thread Simon Urbanek
On Dec 14, 2009, at 12:45 , rfa...@tzi.de wrote: Full_Name: Raimar Falke Version: R version 2.10.0 (2009-10-26) OS: Linux 2.6.27-16-generic #1 SMP Tue Dec 1 19:26:23 UTC 2009 x86_64 GNU/Linux Submission from: (NULL) (134.102.222.56) The construction of a data frame in the way shown below r

[Rd] dumpMethod/getMethod on methods in packages

2009-12-14 Thread Kasper Daniel Hansen
There seems to be something wrong with dumpMethod when called on methods defined in packages (possibly with namespaces). This may be caused by a possible bug in getMethod. (see below for a full copy/paste without comments) First library(Matrix) Now compare dumpMethod("rowSums", "ngCMatrix",

[Rd] Rd cross-references ... WARNING in R-2.10.*

2009-12-14 Thread RICHARD M. HEIBERGER
I have observed a difference in behavior of R CMD check in older R vs R-2.10.x on windows. * using R version 2.10.0 (2009-10-26) * using R version 2.10.1 RC (2009-12-14 r50718) 2.10 seems to be looking on the internet for crossreferenced packages. I am not sure why it is looking. The string is n

[Rd] as.data.frame requires a lot of memory (PR#14140)

2009-12-14 Thread rfalke
Full_Name: Raimar Falke Version: R version 2.10.0 (2009-10-26) OS: Linux 2.6.27-16-generic #1 SMP Tue Dec 1 19:26:23 UTC 2009 x86_64 GNU/Linux Submission from: (NULL) (134.102.222.56) The construction of a data frame in the way shown below requires much more memory than expected. If we assume a

[Rd] Online help for text() wrong for 'pos' argument. (PR#14136)

2009-12-14 Thread mg10
This is a multi-part message in MIME format. --000902010602030404010803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello Please find bug report attached. Thanks Matthew -- Matthew Gillman Team 105: Variation Informatics Wellcome Tru

[Rd] New version weighted mean differs from the old one (PR#14142)

2009-12-14 Thread huh420
Full_Name: Myung-Hoe Huh Version: 2.10 OS: Windows Submission from: (NULL) (116.120.84.194) New Version (2.10.0) weighted mean produces unreasonable result: see below. wt <- c(5, 5, 4, 1)/15 x <- c(3.7,3.3,3.5,2.8) x[4] <- NA (xm <- weighted.mean(x,wt,na.rm=T)) Outcome is

[Rd] Accuracy (PR#14139)

2009-12-14 Thread bersch
Full_Name: Bernd Schuster Version: 2.10.0 OS: Windows Vista Submission from: (NULL) (91.115.36.35) > pnorm(1.35,0,1) [1] 0.911492 > pnorm(1.36,0,1) [1] 0.913085 > options(digits=4) > pnorm(1.35,0,1) [1] 0.9115 > pnorm(1.36,0,1) [1] 0.913 rounding error? ___

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Petr Savicky
On Mon, Dec 14, 2009 at 09:24:12AM +0100, Kurt Hornik wrote: > > Peter Dalgaard writes: [...] > > Hmm, looks more like a thinko in this code inside codoc(): > > > functions_in_code <- Filter(function(f) { > > f <- get(f, envir = code_env) > > is.function(f) && (length(fo

Re: [Rd] raster support in graphics devices

2009-12-14 Thread baptiste auguie
Hi, [my message below is a bit off-topic] 2009/12/14 Paul Murrell : > I have thought a bit about drawing the same image multiple times (more in > the context of using a bitmap for a plotting symbol).  I imagine something > like being able to "add" a raster image to a device and then simply "refe

Re: [Rd] qpois errors for degenerate distribution (PR#14135)

2009-12-14 Thread maechler
> "JL" == Jerry Lewis > on Mon, 14 Dec 2009 11:15:10 +0100 (CET) writes: JL> Full_Name: Jerry W. Lewis Version: 2.10.0 OS: XP JL> Professional Submission from: (NULL) (96.237.55.233) JL> For a degenerate Poisson distribution (lambda==0), JL> qpois(p,0,lower.tail) sho

[Rd] ar.ols(): negative determinant problem

2009-12-14 Thread Achim Zeileis
Hi, I was pointed by a request on R-help to the following problem with ar.ols(): R> set.seed(1) R> x <- matrix(rnorm(4 * 2), ncol = 2) R> ar.ols(x, order.max = 1, aic = FALSE, demean = FALSE) Error in if ((dimension < 1) | (dimension > n)) stop("wrong embedding dimension") : argument is of

Re: [Rd] R on Windows crashes when using certain characters in strings (PR#14137)

2009-12-14 Thread murdoch
On 10/12/2009 4:20 AM, k...@huftis.org wrote: > Full_Name: Karl Ove Hufthammer > Version: 2.10.0 > OS: Windows XP > Submission from: (NULL) (93.124.134.66) > > > I have found a rather strange bug in R 2.10.0 on Windows, where the choice of > characters used in a string make R crash (i.e., Windows

Re: [Rd] R on Windows crashes when using certain characters in strings in data frames (PR#14125)

2009-12-14 Thread Duncan Murdoch
On 10/12/2009 4:20 AM, k...@huftis.org wrote: Full_Name: Karl Ove Hufthammer Version: 2.10.0 OS: Windows XP Submission from: (NULL) (93.124.134.66) I have found a rather strange bug in R 2.10.0 on Windows, where the choice of characters used in a string make R crash (i.e., Windows shows a dialo

[Rd] qpois errors for degenerate distribution (PR#14135)

2009-12-14 Thread Jerry . Lewis
Full_Name: Jerry W. Lewis Version: 2.10.0 OS: XP Professional Submission from: (NULL) (96.237.55.233) For a degenerate Poisson distribution (lambda==0), qpois(p,0,lower.tail) should return 0 for any valid p, but qpois(1,0) and qpois(0,0,F) incorrectly return Inf.

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Peter Dalgaard
Kurt Hornik wrote: >> Peter Dalgaard writes: > >> Petr Savicky wrote: >>> For the package at >>> http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz >>> which is a minor part of some other package only to demonstrate the >>> problem, i get (under R version 2.11.0 Under development 200

Re: [Rd] Calendar week ISO (PR#14132)

2009-12-14 Thread Prof Brian Ripley
Why are you reporting a POSIX standard feature missing in your OS as a bug in R? (One that is even documented on the help page.) On more comprehensive OSes you can use the %V format of strftime. You could compile a replacement for Windows' strftime and link it into your build of R, as we have

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Kurt Hornik
> Peter Dalgaard writes: > Petr Savicky wrote: >> For the package at >> http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz >> which is a minor part of some other package only to demonstrate the >> problem, i get (under R version 2.11.0 Under development 2009-12-12 r50714 >> and also