[Rd] rgamma gives zeros. (PR#9184)

2006-08-30 Thread pxi
Full_Name: Peiyi Xi Version: R 2.2.0 OS: Windows XP Professional Submission from: (NULL) (128.2.3.141) When I use rgamma(n, shape, rate ) to generate gamma samples, it gives zeros when both shape and rate are very small. But we know that if x follows a gamma distribution, x should be positive.

Re: [Rd] list and pairlist in Writing R Extensions (PR#9185)

2006-08-30 Thread ripley
It says clearly that showArgs is for use by .External, not .Call (it is introduced in a paragraph about the differences): @example showArgs - function(...) .External(showArgs, ...) @end example and that is the main user error here. Pairlists are not needed when used as documented. On Wed, 30

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread friedrich . leisch
Duncan Murdoch [EMAIL PROTECTED] writes: I think we need an option to R CMD check rather than a new field in the DESCRIPTION. Currently a package could be mentioned for any of these reasons: 1. To make functions, examples or vignettes work 2. To allow optional functionality in functions,

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread Martin Maechler
FrL == friedrich leisch [EMAIL PROTECTED] on Wed, 30 Aug 2006 09:34:13 +0200 (MEST) writes: Duncan Murdoch [EMAIL PROTECTED] writes: I think we need an option to R CMD check rather than a new field in the DESCRIPTION. Currently a package could be mentioned for any of these

Re: [Rd] Speed of runif() on different Operating Systems

2006-08-30 Thread Prof Brian Ripley
On Wed, 30 Aug 2006, Martin Becker wrote: Prof Brian Ripley wrote: No one else seems to have responded to this. Please see `Writing R Extensions' for how to time things in R. Thank you very much for the pointer to system.time(), although I read most of 'Writing R Extensions', I must

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread Duncan Murdoch
On 8/30/2006 3:21 AM, [EMAIL PROTECTED] wrote: On 8/29/2006 4:13 PM, Paul Gilbert wrote: Duncan Murdoch wrote: [...] This doesn't address the problem of someone who hasn't got the package installed yet, though perhaps CRAN could put a version of that man page (or all of them) online for

Re: [Rd] Speed of runif() on different Operating Systems

2006-08-30 Thread Duncan Murdoch
On 8/30/2006 6:33 AM, Prof Brian Ripley wrote: On Wed, 30 Aug 2006, Martin Becker wrote: Prof Brian Ripley wrote: No one else seems to have responded to this. Please see `Writing R Extensions' for how to time things in R. Thank you very much for the pointer to system.time(), although I

[Rd] Inaccuracy in seq() (PR#9189)

2006-08-30 Thread kellymj1
Full_Name: Mark James Kelly Version: 2.3.1 OS: Windows Submission from: (NULL) (193.63.127.224) Sequence produces slightly inaccurate results. #This (supposedely) creates a sequence 0.060,0.065,0.070.0.30 thingnor=(seq(0.06,0.30,by=0.005)) #This does the same but rounds to three decimals

Re: [Rd] Speed of runif() on different Operating Systems

2006-08-30 Thread Martin Becker
Duncan Murdoch schrieb: McLeish published algorithms to simulate these directly in a recent issue of CJS. I don't have the reference handy, but I think it's 2004 or 2005. Duncan Murdoch Thank you for this reference, I think it is the 2002 article *Highs and lows: Some properties of the

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread friedrich . leisch
On 8/30/2006 3:21 AM, [EMAIL PROTECTED] wrote: On 8/29/2006 4:13 PM, Paul Gilbert wrote: Duncan Murdoch wrote: [...] This doesn't address the problem of someone who hasn't got the package installed yet, though perhaps CRAN could put a version of that man page (or all of them) online for

Re: [Rd] Speed of runif() on different Operating Systems

2006-08-30 Thread Duncan Murdoch
On 8/30/2006 7:44 AM, Martin Becker wrote: Duncan Murdoch schrieb: McLeish published algorithms to simulate these directly in a recent issue of CJS. I don't have the reference handy, but I think it's 2004 or 2005. Duncan Murdoch Thank you for this reference, I think it is the 2002

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread friedrich . leisch
FrL == friedrich leisch [EMAIL PROTECTED] on Wed, 30 Aug 2006 09:34:13 +0200 (MEST) writes: Duncan Murdoch [EMAIL PROTECTED] writes: I think we need an option to R CMD check rather than a new field in the DESCRIPTION. Currently a package could be mentioned for any of

[Rd] Enhances (Was: 'CanMakeUseOf' field)

2006-08-30 Thread Dirk Eddelbuettel
On 30 August 2006 at 14:04, [EMAIL PROTECTED] wrote: | Debian has Depends/Recommends/Suggests and after 10 years of using Debian | I would still have to got to the Debian guidelines to learn what the exact | difference between the latter two is. There certainly is a distinction, It's all defined

[Rd] S4 Methods dispatch

2006-08-30 Thread John Chambers
A revision of r-devel 2.4.0 is being committed today with changes to method and class management. The changes are internal but extensive. All packages that use S4 methods and classes need to be reinstalled from source to use the new version. The main effects are to speed up method caching

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread Seth Falcon
Kurt Hornik [EMAIL PROTECTED] writes: An internal environment variable called _R_CHECK_FORCE_SUGGESTS_ which controls this has been in place for quite some time now. One can trivially add a Perl R CMD check configure variable for it. I am a bit hesitant to add a --force-suggests cola to

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread Duncan Murdoch
On 8/30/2006 4:44 AM, Martin Maechler wrote: FrL == friedrich leisch [EMAIL PROTECTED] on Wed, 30 Aug 2006 09:34:13 +0200 (MEST) writes: Duncan Murdoch [EMAIL PROTECTED] writes: I think we need an option to R CMD check rather than a new field in the DESCRIPTION.

Re: [Rd] Enhances

2006-08-30 Thread Seth Falcon
Dirk Eddelbuettel [EMAIL PROTECTED] writes: Now, while we're at it, Debian also has a field called Enhances: and IIRC it provides a means to communicate a relationship 'the other way'. Ie a package foo, rather than being 'pulled in' by a package bar via a Depends, makes itself available to

[Rd] Installation error (PR#9190)

2006-08-30 Thread lenon
Full_Name: Patrick Lenon Version: 2.3.1 OS: Solaris 10 Submission from: (NULL) (144.92.92.204) During ./configure of R 2.3.1 (R-home directory of `/u/home/lenon/R/ru231/') I got this feedback shown below. configure: WARNING: floatingpoint.h: present but cannot be compiled configure: WARNING:

[Rd] Duplicated definition of helper in available.packages

2006-08-30 Thread Seth Falcon
Hi, The .checkRversion helper function is defined twice in available.packages. I'm pretty sure one definition will suffice. Untested patch below. + seth diff --git a/src/library/utils/R/packages.R b/src/library/utils/R/packages.R index 0b84f02..5184992 100644 ---

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread Paul Gilbert
Duncan Murdoch wrote: On 8/30/2006 4:44 AM, Martin Maechler wrote: FrL == friedrich leisch [EMAIL PROTECTED] on Wed, 30 Aug 2006 09:34:13 +0200 (MEST) writes: Duncan Murdoch [EMAIL PROTECTED] writes: I think we need an option to R CMD check rather than a new field in the

Re: [Rd] S4 Methods dispatch

2006-08-30 Thread Henrik Bengtsson
[Cross-posting to BioC-devel to] Thank you for this. The changes are internal but extensive. All packages that use S4 methods and classes need to be reinstalled from source to use the new version. Is there an easy way to detect if a package is using S4 or not? If so, I could scan my

Re: [Rd] S4 Methods dispatch

2006-08-30 Thread John Chambers
John Chambers wrote: A revision of r-devel 2.4.0 is being committed today with changes to method and class management. The changes are internal but extensive. All packages that use S4 methods and classes need to be reinstalled from source to use the new version. A footnote on this.

Re: [Rd] S4 Methods dispatch

2006-08-30 Thread John Chambers
Henrik Bengtsson wrote: [Cross-posting to BioC-devel to] Thank you for this. The changes are internal but extensive. All packages that use S4 methods and classes need to be reinstalled from source to use the new version. Is there an easy way to detect if a package is using S4 or not? If

Re: [Rd] S4 Methods dispatch

2006-08-30 Thread Henrik Bengtsson
On 8/30/06, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Wed, 30 Aug 2006, Henrik Bengtsson wrote: [Cross-posting to BioC-devel to] Thank you for this. The changes are internal but extensive. All packages that use S4 methods and classes need to be reinstalled from source to use

Re: [Rd] S4 Methods dispatch

2006-08-30 Thread Duncan Murdoch
On 8/30/2006 1:35 PM, John Chambers wrote: Henrik Bengtsson wrote: [Cross-posting to BioC-devel to] Thank you for this. The changes are internal but extensive. All packages that use S4 methods and classes need to be reinstalled from source to use the new version. Is there an easy way to

Re: [Rd] 'CanMakeUseOf' field

2006-08-30 Thread Paul Gilbert
Duncan Murdoch wrote: On 8/30/2006 12:28 PM, Paul Gilbert wrote: Duncan Murdoch wrote: On 8/30/2006 4:44 AM, Martin Maechler wrote: FrL == friedrich leisch [EMAIL PROTECTED] on Wed, 30 Aug 2006 09:34:13 +0200 (MEST) writes: Duncan Murdoch [EMAIL PROTECTED] writes: I think we

Re: [Rd] S4 Methods dispatch

2006-08-30 Thread Seth Falcon
Henrik Bengtsson [EMAIL PROTECTED] writes: I think it's more complicated than this. First of all, is it mandatory for a package to be explicit about 'methods'? Second, there are many packages that imports 'methods' implicitly via dependency of other S4 packages, .e.g see many Bioconductor

[Rd] Suggestion for read.table()

2006-08-30 Thread gilescrane
First, I compliment you all for such a useful project as R. Suggestion: If read.table() could take input from a character string, then one could write raw= x y z 1 2 3 4 5 6 df = read.table(raw,head=TRUE) Of course, one can cat() to write raw into a temporary file, and

[Rd] Summary() fails after use of na.action=na.exclude in lm() (PR#9191)

2006-08-30 Thread gregor . gorjanc
Hello! I have already reported on this behaviour at [1] and now I have checked the same example on r-devel and the problem is still there. Thomas Lumley inidicated problem [2]. Example: n - 50 x - runif(n=n) y1 - 2 * x + rnorm(n=n) y2 - 5 * x + rnorm(n=n) y2[sample(1:n, size=5)] - NA y -