[Rd] hasNA() / anyNA()?

2007-08-13 Thread Henrik Bengtsson
Hi, is there a hasNA() / an anyNA() function in R? Of course, hasNA <- function(x) { any(is.na(x)); } would do, but that would scan all elements in 'x' and then do the test. I'm looking for a more efficient implementation that returns TRUE at the first NA, e.g. hasNA <- function(x) { for

Re: [Rd] hasNA() / anyNA()?

2007-08-13 Thread Michael Cassin
I don't know of one. Ideally, instead of a specifc function anyNA() function, any() could be perhaps be extended to any(x, FUN) where FUN returns a logical for an element of x, and implemented to find the 1st instance as you suggest. Mike On 8/13/07, Henrik Bengtsson <[EMAIL PROTECTED]> wrote:

[Rd] Mistake in ISOLatin7.enc file (PR#9845)

2007-08-13 Thread zemlys
Full_Name: Vaidotas Zemlys Version: 2.5.1 OS: Ubuntu 7.04 Submission from: (NULL) (213.197.173.50) Hi, There is a mistake in ISOLatin7.enc file which is shipped with grDevices package. Instead of Umacron and umacron there are Ucirmcumflex and ucirmcumflex. There is no U cirmcumflex in ISO Lati

[Rd] Non-administrator can't install packages (PR#9848)

2007-08-13 Thread russell-lenth
Full_Name: Russ Lenth Version: 1.5.1 OS: Windows XP Pro Submission from: (NULL) (128.255.132.36) I run a Windows system on which I do not have administrator rights. I am unable to install R packages, even in a location that I have access to. I get a message that it can't write to the specified

[Rd] Change in grep functionality causes Rd_db to fail silently (PR#9846)

2007-08-13 Thread m . pacey
Full_Name: Mike Pacey Version: 2.5.1 OS: SUSE SE Linux 9.3 Submission from: (NULL) (194.80.32.10) Versions 2.5.0 and 2.5.1 currently fail "make check" on my system due to a silent failure in the call to Rd_db("base"): - > ### Name: Rdutils > ### Title: Rd Utilities > ### Aliases: Rd_db Rd_p

Re: [Rd] hasNA() / anyNA()?

2007-08-13 Thread Kurt Hornik
> Michael Cassin writes: > I don't know of one. > Ideally, instead of a specifc function anyNA() function, any() could > be perhaps be extended to any(x, FUN) where FUN returns a logical for > an element of x, and implemented to find the 1st instance as you > suggest. Patterned after Common

[Rd] Compilation error with R-devel_2007-08-12.tar.gz snapshot

2007-08-13 Thread Herve Pages
Hi, I get a compilation error with last available R devel snapshot (R-devel_2007-08-12.tar.gz, r42483): CONFIGURE [EMAIL PROTECTED]:~/R-2.6.broken> ~/src/R-2.6.r42483/configure checking build system type... x86_64-unknown-linux-gnu checking host system

[Rd] [Fwd: behavior of L-BFGS-B with trivial function triggers bug in stats4::mle]

2007-08-13 Thread Ben Bolker
I sent this in first on 30 July. Now that UseR! is over I'm trying again (slightly extended version from last time). With R 2.5.1 or R 2.6.0 (2007-08-04 r42421) "L-BFGS-B" behaves differently from all of the other optim() methods, which return the value of the function when they are given a

Re: [Rd] Compilation error with R-devel_2007-08-12.tar.gz snapshot

2007-08-13 Thread Herve Pages
Problem gone with new snapshot (2007-08-13, r42496). Thanks! H. Herve Pages wrote: > Hi, > > I get a compilation error with last available R devel > snapshot (R-devel_2007-08-12.tar.gz, r42483): > > > CONFIGURE > > [EMAIL PROTECTED]:~/R-2.6.broken> ~/

[Rd] Change of compiler for Windows build of R

2007-08-13 Thread Prof Brian Ripley
The MinGW people have finally released a couple of builds of gcc 4.2.1 (and finally moved the build of 3.4.5 to release status after 19 months as 'candidate'). We intend to use gcc 4.2.1 for the binary distribution of R 2.6.0, and builds of R-devel are being made with it from now on. The R-adm