[Rd] model.frame error with formula=~1 and na.action=na.fail (PR#14066)

2009-11-16 Thread Sebastian . Wastl . Meyer
Full_Name: Sebastian Meyer Version: 2.10.0 OS: x86_64-pc-linux-gnu Submission from: (NULL) (77.135.124.96) When using model.frame (model.frame.default) on an intercept-only model and with na.action=na.fail SPECIFIED, i.e. data(iris) model.frame( ~ 1, data = iris, na.action = na.fail) one

[Rd] (Date + difftime) and (POSIXt + difftime) does not use date/time arithmetics (PR#14067)

2009-11-16 Thread suharto_anggono
Full_Name: Suharto Anggono Version: 2.8.1 OS: Windows Submission from: (NULL) (125.165.81.48) There is already PR#13369. But, the problem is not just the warning. C:\Program Files\R\R-2.8.1\binR --vanilla R version 2.8.1 (2008-12-22) Copyright (C) 2008 The R Foundation for Statistical

Re: [Rd] (PR#14066) model.frame error with formula=~1 and na.action=na.fail

2009-11-16 Thread Prof Brian Ripley
Thank you for the report -- but a bit more investigation of the root cause would have been even more helpful: this is not 'model.frame error', nor even reported by R as such. The issue was that complete.cases() did not know how to find the number of rows of a 0-column data frame (it knew

Re: [Rd] Problem building package for R 2.10.0 on Mac OS X

2009-11-16 Thread Simon Urbanek
Thanks, Brian, I was away traveling/away from Internet and all hell breaks lose :) [more precisely Fortran broke for some reason]. Stephen, in the case of rioja it is really a bug in your code - you have to check the result of require() or depend on vegan. Suggests means that your package

[Rd] n=1 default for random number generators

2009-11-16 Thread Richard Cotton
One tiny thing that would be very nice to have is a default value of n=1 in the random number generator functions, enabling, e.g., runif() instead of runif(1). This won't break anyone's existing code and ought to be relatively straightforward to do. Is there anyone in the core team who would

Re: [Rd] n=1 default for random number generators

2009-11-16 Thread Duncan Murdoch
On 11/16/2009 11:00 AM, Richard Cotton wrote: One tiny thing that would be very nice to have is a default value of n=1 in the random number generator functions, enabling, e.g., runif() instead of runif(1). This won't break anyone's existing code and ought to be relatively straightforward to do.

Re: [Rd] n=1 default for random number generators

2009-11-16 Thread William Dunlap
-Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Monday, November 16, 2009 8:28 AM To: Richard Cotton Cc: r-devel@r-project.org Subject: Re: [Rd] n=1 default for random number generators On 11/16/2009

Re: [Rd] n=1 default for random number generators

2009-11-16 Thread Patrick Burns
Duncan Murdoch wrote: On 11/16/2009 11:00 AM, Richard Cotton wrote: One tiny thing that would be very nice to have is a default value of n=1 in the random number generator functions, enabling, e.g., runif() instead of runif(1). This won't break anyone's existing code and ought to be

Re: [Rd] n=1 default for random number generators

2009-11-16 Thread Prof Brian Ripley
On Mon, 16 Nov 2009, Richard Cotton wrote: One tiny thing that would be very nice to have is a default value of n=1 in the random number generator functions, enabling, e.g., runif() instead of runif(1). This won't break anyone's existing code and ought to be relatively straightforward to do.

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-16 Thread Robert Gentleman
Hi, On Fri, Nov 13, 2009 at 4:55 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 7:26 PM, Gabor Grothendieck wrote: On Fri, Nov 13, 2009 at 7:21 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 6:39 PM, Gabor Grothendieck wrote: Note that one should use inherits =

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-16 Thread Duncan Murdoch
On 11/16/2009 12:07 PM, Robert Gentleman wrote: Hi, On Fri, Nov 13, 2009 at 4:55 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 7:26 PM, Gabor Grothendieck wrote: On Fri, Nov 13, 2009 at 7:21 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 6:39 PM, Gabor

Re: [Rd] The default behaviour of a missing entry in an environment

2009-11-16 Thread Peter Dalgaard
Robert Gentleman wrote: Hi, On Fri, Nov 13, 2009 at 4:55 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 7:26 PM, Gabor Grothendieck wrote: On Fri, Nov 13, 2009 at 7:21 PM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 6:39 PM, Gabor Grothendieck wrote: Note that one

[Rd] R crash with intToUtf8 on huge vectors (PR#14068)

2009-11-16 Thread g . russell
Full_Name: George Russell Version: 2.10.0 OS: Windows XP Professional Version 2002 Service Pack 2 Submission from: (NULL) (217.111.3.131) Typing the following command into R --vanilla causes R to crash: k - intToUtf8(rep(1e3,1e7)) This is the output of sessionInfo(): R version 2.10.0

Re: [Rd] (PR#14066) model.frame error with formula=~1 and na.action=na.fail

2009-11-16 Thread Sebastian Meyer
Thank you for your rapid bug fix and for your instructive comments on my bug report. this is not 'model.frame error', nor even reported by R as such. Of course you are right, but I thought that a bug report on model.frame would probably reach more attention further providing a more motivating

Re: [Rd] R crash with intToUtf8 on huge vectors (PR#14068)

2009-11-16 Thread Duncan Murdoch
On 11/16/2009 8:10 AM, g.russ...@eos-solutions.com wrote: Full_Name: George Russell Version: 2.10.0 OS: Windows XP Professional Version 2002 Service Pack 2 Submission from: (NULL) (217.111.3.131) Typing the following command into R --vanilla causes R to crash: k - intToUtf8(rep(1e3,1e7))

Re: [Rd] Suggestion: Add links to NEWS and CHANGES on help.start() page

2009-11-16 Thread Henrik Bengtsson
On Mon, Nov 16, 2009 at 4:06 AM, Duncan Murdoch murd...@stats.uwo.ca wrote: On 13/11/2009 7:39 AM, Gabor Grothendieck wrote: Its also difficult to know about demos unless you specifically issue a demo(package = mypackage) command.  It would be nice if these were listed too. This is in

Re: [Rd] How to generate dependency file that can be used by gnu make?

2009-11-16 Thread Peng Yu
On Sun, Nov 15, 2009 at 8:45 PM, Peng Yu pengyu...@gmail.com wrote: gcc has options like -MM, which can generate the dependence files for a C/C++ file that I can be used by gnu make. I'm wondering if there is a tool that can generate dependence file for an R script. For example, I have an R