[Rd] Package digest broken under R v2.4.0 devel

2006-07-27 Thread Henrik Bengtsson
[cc:ing to the maintainer of digest] FYI, package 'digest' (v0.2.1 2005/11/04 04:45:53) generates the same output regardless of input with R v2.4.0 devel (2006-07-25 r38698). Starting a vanilla R session you get: > library(digest) > digest(1) [1] "3416a75f4cea9109507cacd8e2f2aefc" > digest(2) [1]

Re: [Rd] bug with rpois (PR#9106)

2006-07-27 Thread Thomas Lumley
On Thu, 27 Jul 2006, Ben Bolker wrote: > math.siu.edu> writes: > >> >> >> The R poisson random generator rpois appears to have a bug for >> theta 10 or larger. The sample mean of the pseudo variates is too >> small: sample mean approx theta - 0.5. >> > > Certainly fixed by 2.3.1: > In fact, fix

Re: [Rd] bug with rpois (PR#9106)

2006-07-27 Thread Ben Bolker
math.siu.edu> writes: > > > The R poisson random generator rpois appears to have a bug for > theta 10 or larger. The sample mean of the pseudo variates is too > small: sample mean approx theta - 0.5. > Certainly fixed by 2.3.1: zsim <- function(nc = 100, nr = 500, theta = 1) + {# check r

Re: [Rd] bug with rpois (PR#9106)

2006-07-27 Thread rdpeng
Technically speaking, your version of R is from the previous century. You might want to check with a more recent version before reporting a bug. -roger [EMAIL PROTECTED] wrote: > The R poisson random generator rpois appears to have a bug for > theta 10 or larger. The sample mean of the pseudo

[Rd] bug with rpois (PR#9106)

2006-07-27 Thread dolive
The R poisson random generator rpois appears to have a bug for theta 10 or larger. The sample mean of the pseudo variates is too small: sample mean approx theta - 0.5. I use Version 1.1.1 (August 15, 2000) Of R on a Dell OptiPlex computer with the Windows XP Professional operating system. Has

Re: [Rd] Any interest in "merge" and "by" implementations specifically for sorted data?

2006-07-27 Thread Seth Falcon
"Kevin B. Hendricks" <[EMAIL PROTECTED]> writes: > My first R attempt was a simple > > # sort the data.frame gd and the sort key > sorder <- order(MDPC) > gd <- gd[sorder,] > MDPC <- MDPC[sorder] > attach(gd) > > # find the length and sum for each unique sort key > XN <- by(MVE, MDPC, length) > XS

Re: [Rd] % symbol in .Rd files?

2006-07-27 Thread Dominick Samperi
Martin Maechler wrote: >> "Dominick" == Dominick Samperi <[EMAIL PROTECTED]> >> on Thu, 27 Jul 2006 08:51:34 -0400 writes: >> > > Dominick> Martin Maechler wrote: > >> Hmm, actually I now start wondering: Why did we ever start > >> talking about this at all?

[Rd] Any interest in "merge" and "by" implementations specifically for sorted data?

2006-07-27 Thread Kevin B. Hendricks
Hi Developers, I am looking for another new project to help me get more up to speed on R and to learn something outside of R internals. One recent R issue I have run into is finding a fast implementations of the equivalent to the following SAS code: /* MDPC is an integer sort key made fro

Re: [Rd] % symbol in .Rd files?

2006-07-27 Thread Martin Maechler
> "Dominick" == Dominick Samperi <[EMAIL PROTECTED]> > on Thu, 27 Jul 2006 08:51:34 -0400 writes: Dominick> Martin Maechler wrote: >> Hmm, actually I now start wondering: Why did we ever start >> talking about this at all? Isn't this something you have to settle >> wit

Re: [Rd] % symbol in .Rd files?

2006-07-27 Thread Dominick Samperi
Martin Maechler wrote: > Hmm, actually I now start wondering: Why did we ever start > talking about this at all? Isn't this something you have to settle > with Kurt, Fritz, or whomever.. ? > Regards, > Martin Maechler Sorry if I was unclear, but yes, it was settled with the help of Kurt. As I said

Re: [Rd] % symbol in .Rd files?

2006-07-27 Thread Martin Maechler
> "DoSa" == Dominick Samperi <[EMAIL PROTECTED]> > on Thu, 27 Jul 2006 07:52:36 -0400 writes: DoSa> Martin Maechler wrote: >>> "DoSa" == Dominick Samperi <[EMAIL PROTECTED]> >>> on Mon, 24 Jul 2006 13:07:29 -0400 writes: >>> >> DoSa> Hello, I am en

Re: [Rd] how to start local scope?

2006-07-27 Thread Duncan Murdoch
On 7/27/2006 8:16 AM, Tamas K Papp wrote: > How can I start a local scope inside an R function? Eg in > >> b > Error: object "b" not found >> f <- function() { > + { > + b <- 1 > + } > + b+2 > + } >> f() > [1] 3 > > I would like f() to report an error, not finding b. I am thinking > a

Re: [Rd] how to start local scope?

2006-07-27 Thread Roger D. Peng
Try f <- function() { local({ b <- 1 }) b + 2 } Tamas K Papp wrote: > How can I start a local scope inside an R function? Eg in > >> b > Error: object "b" not found >> f <- function() { > + { > + b <- 1 > + } > + b+2 > + } >> f() > [1] 3 > > I

[Rd] how to start local scope?

2006-07-27 Thread Tamas K Papp
How can I start a local scope inside an R function? Eg in > b Error: object "b" not found > f <- function() { + { + b <- 1 + } + b+2 + } > f() [1] 3 I would like f() to report an error, not finding b. I am thinking about something like let in Scheme/Lisp. Thanks, Tamas

Re: [Rd] % symbol in .Rd files?

2006-07-27 Thread Dominick Samperi
Martin Maechler wrote: >> "Dominick" == Dominick Samperi <[EMAIL PROTECTED]> >> on Mon, 24 Jul 2006 13:07:29 -0400 writes: >> > > Dominick> Hello, I am encountering problems when there is a > Dominick> '%' character in package .Rd files. More > Dominick> pre

Re: [Rd] SystemRequirements (was DESCRIPTION and PACKAGES files )

2006-07-27 Thread Martin Maechler
> "Allen" == Allen S Rout <[EMAIL PROTECTED]> > on 24 Jul 2006 12:27:39 -0400 writes: Allen> Seth Falcon <[EMAIL PROTECTED]> writes: >> For the Bioconductor project, we also wanted more >> information to be programatically available regarding the >> packages in a reposi

Re: [Rd] % symbol in .Rd files?

2006-07-27 Thread Martin Maechler
> "Dominick" == Dominick Samperi <[EMAIL PROTECTED]> > on Mon, 24 Jul 2006 13:07:29 -0400 writes: Dominick> Hello, I am encountering problems when there is a Dominick> '%' character in package .Rd files. More Dominick> precisely, CRAN is having problems with these Domin

Re: [Rd] Install R-patched_2006-07-13 on i386-pc-solaris2.10 with Sun Studio 11

2006-07-27 Thread Latchezar Dimitrov
Dear Prof. Ripley and R-developers: Thank you very much for the reply. Please see bellow > -Original Message- > From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 26, 2006 2:37 AM > To: Latchezar Dimitrov > Cc: r-devel@stat.math.ethz.ch > Subject: Re: [Rd] Install