Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-29 Thread Peter Dalgaard
Prof Brian Ripley wrote: > > I think you will find that 'n' is used in several ways in predict.lm, > and since NA-handling was introduced in R 1.8.0 they may differ in > value. So the safest route seems to be to change just 'n' in > > df <- n - p Yes, that seems to fix things.

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-29 Thread Peter Dalgaard
Peter Dalgaard wrote: > Prof Brian Ripley wrote: > >> I think you will find that 'n' is used in several ways in predict.lm, >> and since NA-handling was introduced in R 1.8.0 they may differ in >> value. So the safest route seems to be to change just 'n' in >> >> df <- n - p > > Y

Re: [Rd] R CMD build wiped my computer (from R-help)

2010-07-29 Thread Ray Brownrigg
NOTE: Now submitted to R-devel, as this seems more appropriate. I may have spoken too soon about this having been fixed. (see below). If I create another "unusual but not 'invalid'" filename in the R subdirectory, the behaviour is different from that reported below, and is similar to the origin

Re: [Rd] CRAN updates?

2010-07-29 Thread Uwe Ligges
On 27.07.2010 22:15, Simon Urbanek wrote: On Jul 27, 2010, at 9:56 AM, Dominick Samperi wrote: It appears that after a package is updated the CRAN binaries for some OS's are built automatically and shortly after the update, while other OS's are not updated for some time (weeks in some cases)

Re: [Rd] R CMD check - "there is no package called"

2010-07-29 Thread Uwe Ligges
On 26.07.2010 02:00, Simon Urbanek wrote: On Jul 24, 2010, at 9:02 AM, John Hendrickx wrote: I'm trying to update my "perturb" package to get rid of some small warning messages. The examples in "perturb" use the "Duncan" dataset from the "car" package and I have "car" installed in R. But whe

Re: [Rd] R CMD build wiped my computer (from R-help)

2010-07-29 Thread Duncan Murdoch
On 28/07/2010 8:10 PM, Ray Brownrigg wrote: NOTE: Now submitted to R-devel, as this seems more appropriate. I may have spoken too soon about this having been fixed. (see below). If I create another "unusual but not 'invalid'" filename in the R subdirectory, the behaviour is different from that

Re: [Rd] Telling R CMD check where to find libraries

2010-07-29 Thread Uwe Ligges
On 20.07.2010 17:18, Thaler, Thorn, LAUSANNE, Applied Mathematics wrote: Hello everybody, Currently I'm developing a library, which uses some functions from another package (namely plotrix). Consequently, I listed this dependency in the DESCRIPTION file. When I try to run "R CMD check mypackag

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-29 Thread peter dalgaard
I believe that I now has this nailed down (a couple of further issues raised their head). Committed to r-devel. -pd On Jul 29, 2010, at 10:11 AM, Peter Dalgaard wrote: > Peter Dalgaard wrote: >> Prof Brian Ripley wrote: >> >>> I think you will find that 'n' is used in several ways in predict.

[Rd] Using 'dimname names' in aperm() and apply()

2010-07-29 Thread Michael Lachmann
I think that the "dimname names" of tables and arrays could make aperm() and apply() (and probably some other functions) easier to use. (dimname names are, for example, created by table() ) The use would be something like: -- x <-table( from=sample(3,100,rep=T), to=sample(5,100,rep=T)) trans <- x

Re: [Rd] Using 'dimname names' in aperm() and apply()

2010-07-29 Thread Prof Brian Ripley
It's not that simple. These are base functions so - adding utility functions to base is undesirable - efficiency matters - any change (including adding a function!) needs corresponding documentation. - this needs much better error checking. - dimnum.from.dimnamename is rather inefficient: a sim

[Rd] RODBC sqlSave not all columns

2010-07-29 Thread waanders
Hello, How can I make sqlSave only to write a subset of columns. I've a (MS-Access) table with columns A, B, C en D and if I send a sqlSave command with a data frame with columns A, B en D I get the message: Error in odbcUpdate(channel, query, mydata, coldata[m, ], test = test, : missing co

Re: [Rd] HowTo get callback on destroy of grDevices::windows()

2010-07-29 Thread Paul Murrell
Hi On 27/07/2010 7:49 a.m., rrich...@fh-lausitz.de wrote: I'm build with the usage of the tcltk/tcltk2 package a gui which is started with rscript.exe. At this gui the user is able to open and close plot windows. Now I'm looking for a way that a r function is called when a grDevices::window