Re: [Rd] Errors on Windows with grep(fixed=TRUE) on UTF-8 strings

2015-03-03 Thread Winston Chang
After a bit more investigation, I think I've found the cause of the bug, and I have a patch. This bug happens with grep(), when: * Running on Windows. * The search uses fixed=TRUE. * The search pattern is a single byte. * The current locale has a multibyte encoding. === Here's

Re: [Rd] [R] Why does R replace all row values with NAs

2015-03-03 Thread Hervé Pagès
On 03/03/2015 02:17 PM, Gabriel Becker wrote: Stephanie, Actually, it's as.logical that isn't preserving matrix dimensions, because it coerces to a logical vector: > x <- matrix(sample(c(NA_integer_, 1:100), 500, replace=TRUE), nrow=50) > dim(as.logical(x)) It's true, as.logical() doesn't

Re: [Rd] [R] Why does R replace all row values with NAs

2015-03-03 Thread Gabriel Becker
Stephanie, Actually, it's as.logical that isn't preserving matrix dimensions, because it coerces to a logical vector: > x <- matrix(sample(c(NA_integer_, 1:100), 500, replace=TRUE), nrow=50) > dim(as.logical(x)) NULL ~G On Tue, Mar 3, 2015 at 2:09 PM, Stephanie M. Gogarten < sdmor...@u.washingt

Re: [Rd] [R] Why does R replace all row values with NAs

2015-03-03 Thread Stephanie M. Gogarten
On 3/3/15 1:26 PM, Hervé Pagès wrote: On 03/03/2015 02:28 AM, Martin Maechler wrote: Diverted from R-help : as it gets into musing about new R language "primitives" William Dunlap on Fri, 27 Feb 2015 08:04:36 -0800 writes: > You could define functions like > is.true

Re: [Rd] [R] Why does R replace all row values with NAs

2015-03-03 Thread Hervé Pagès
On 03/03/2015 02:28 AM, Martin Maechler wrote: Diverted from R-help : as it gets into musing about new R language "primitives" William Dunlap on Fri, 27 Feb 2015 08:04:36 -0800 writes: > You could define functions like > is.true <- function(x) !is.na(x) & x > is.f

[Rd] Feature request: copy attributes in gzcon

2015-03-03 Thread Jeroen Ooms
The `gzcon` function both modifies and copies a connection object: # compressed text con1 <- url("http://www.stats.ox.ac.uk/pub/datasets/csb/ch12.dat.gz";) con2 <- gzcon(con1) # almost indistinguishable con1==con2 identical(summary(con2), summary(con1)) # both support gzip readLi

Re: [Rd] Asking for tasks of summer code 2015

2015-03-03 Thread beleites,claudia
On Mo, 2015-03-02 at 16:53 +0100, han cao wrote: > Hey everyone: > I am a Master student from Saarland Unirversity, Germany with the major of > Bioinformatics. And I am interested in statistical learning which is also > my major work in the future with the implementation by R. So I 'd like join > t

Re: [Rd] Import data set from another package?

2015-03-03 Thread Therneau, Terry M., Ph.D.
As I expected: there was something simple and obvious, which I somehow could not see. Thanks for the pointer. Terry T. On 03/03/2015 03:12 AM, Prof Brian Ripley wrote: On 02/03/2015 22:48, Therneau, Terry M., Ph.D. wrote: I've moved nlme from Depends to Imports in my coxme package. However,

Re: [Rd] Asssistance

2015-03-03 Thread Gregor Kastner
Hi Evans, > * checking for file ‘OAR/DESCRIPTION’ ... OK > * preparing ‘OAR’: > * checking DESCRIPTION meta-information ... ERROR > Malformed Depends or Suggests or Imports or Enhances field. > Offending entries: > R (>=3.0.2) > Entries must be names of packages optionally followed by '<=' or '>

Re: [Rd] Asssistance

2015-03-03 Thread Duncan Murdoch
On 03/03/2015 5:47 AM, Evans Otieno Ochiaga wrote: > Hi to All, > > I am building a package in R and whenever I run command "R CMD build OAR" > in the terminal, I get the following error: > > * checking for file ‘OAR/DESCRIPTION’ ... OK > * preparing ‘OAR’: > * checking DESCRIPTION meta-informati

[Rd] Asssistance

2015-03-03 Thread Evans Otieno Ochiaga
Hi to All, I am building a package in R and whenever I run command "R CMD build OAR" in the terminal, I get the following error: * checking for file ‘OAR/DESCRIPTION’ ... OK * preparing ‘OAR’: * checking DESCRIPTION meta-information ... ERROR Malformed Depends or Suggests or Imports or Enhances f

[Rd] Asking for tasks of summer code 2015

2015-03-03 Thread han cao
Hey everyone: I am a Master student from Saarland Unirversity, Germany with the major of Bioinformatics. And I am interested in statistical learning which is also my major work in the future with the implementation by R. So I 'd like join the google summer code this year by doing tasks in your comm

Re: [Rd] [R] Why does R replace all row values with NAs

2015-03-03 Thread Martin Maechler
Diverted from R-help : as it gets into musing about new R language "primitives" > William Dunlap > on Fri, 27 Feb 2015 08:04:36 -0800 writes: > You could define functions like > is.true <- function(x) !is.na(x) & x > is.false <- function(x) !is.na(x) & !x > and

Re: [Rd] Import data set from another package?

2015-03-03 Thread Prof Brian Ripley
On 02/03/2015 22:48, Therneau, Terry M., Ph.D. wrote: I've moved nlme from Depends to Imports in my coxme package. However, a few of the examples for lmekin use one of the data sets from nlme. This is on purpose, to show how the results are the same and how they differ. If I use data(nlme::e

Re: [Rd] R-devel does not update the C++ returned variables

2015-03-03 Thread Martin Maechler
> Hervé Pagès > on Mon, 2 Mar 2015 13:00:47 -0800 writes: > Hi, > On 03/02/2015 12:18 PM, Dénes Tóth wrote: >> >> >> On 03/02/2015 04:37 PM, Martin Maechler wrote: >>> On 2 March 2015 at 09:09, Duncan Murdoch wrote: | I generally recommend