[Rd] slight inconsistency in ( )

2009-07-20 Thread Martin Maechler
We have a very slight inconsistency in the treatment of logical matrices with our three major factorizations: qr() coerces to numeric , whereas svd() and eigen() give an error. I'm proposing to change svd() and eigen() such that they also treat a logical matrix as if it was 0-1 , analogously to

[Rd] tabulate can accept NA values?

2009-07-20 Thread Martin Morgan
tabulate has .C("R_tabulate", as.integer(bin), as.integer(length(bin)), as.integer(nbins), ans = integer(nbins), PACKAGE="base")$ans The implementation of R_tabulate has if(x[i] != R_NaInt && x[i] > 0 && x[i] <= *nbin) and so copes with (silently drops) NA. Perhaps the .C cou

[Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-20 Thread Kevin R. Coombes
Hi, I have just updated R from version 2.8.1 to version 2.9.1. I am running Windows XP Professional, Service Pack 3. With the update, I decided to update a set of packages that I maintain by compiling them for the new version. Everything worked fine except for one package. This package is

Re: [Rd] bug in seq_along

2009-07-20 Thread Kasper Daniel Hansen
This has now been fixed in R-2.9 and R-devel by Martin Maechler. Thanks Kasper On Jul 13, 2009, at 15:43 , Hervé Pagès wrote: Hi Kasper and R developers, Kasper Daniel Hansen wrote: Using the IRanges package from Bioconductor and somewhat recent R-2.9.1. ov = IRanges(1:3, 4:6) length(ov) #

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-20 Thread Tony Plate
This error message looks like it comes from src/library/tools/R/install.R, which contains the following test: if (!.file_test("-d", lib) || file.access(lib, 2L)) stop("ERROR: no permission to install to directory ", sQuote(lib), call. = FALSE) The function .file_test() is

Re: [Rd] tabulate can accept NA values?

2009-07-20 Thread Robert Gentleman
should be in devel now, NAs are ignored (as are non-integers and things outside the nbin argument) Martin Morgan wrote: tabulate has .C("R_tabulate", as.integer(bin), as.integer(length(bin)), as.integer(nbins), ans = integer(nbins), PACKAGE="base")$ans The implementation of R_tabul