Re: [Rd] predictions in nlme without fixed covariantes

2013-10-03 Thread Prof Brian Ripley
This should be fixed in nlme 3.1-112. However, nlme has little support for formulae such as resp ~ 0, and does things like p:1 where p is the number of columns in the model matrix. 3.1-112 does better but evidently the design did not consider this possibility. On 30/09/2013 13:42, ONKELINX,

Re: [Rd] version comparison puzzle

2013-10-03 Thread Martyn Plummer
It's an underflow problem. When comparing versions, "a.b.c" is converted first to the integer vector c(a,b,c) and then to the double precision value a + b/base + c/base^2 where base is 1 greater than the largest integer component of any of the versions: i.e 99912 in this case. The last term

Re: [Rd] version comparison puzzle

2013-10-03 Thread Jari Oksanen
Actually, Bob O'Hara had a blog post about this in August 2012: http://occamstypewriter.org/boboh/2012/08/17/lme4_destined_to_become_stable_through_rounding/ The concluding chapter reads: "I have been worried that lme4 will never become stable, but this latest version mollifies me with the thou

[Rd] check warning with .onLoad() and setClass()

2013-10-03 Thread Rainer M Krug
Hi I am writing a package in which I define a new class in the .onLoad() hook: , | .onLoad <- function(libname, pkgname) { | setClass( | "inDrak", | representation( | init = "SpatialGridDataFrame" | ), | contains = "simObj" | ) | } `

Re: [Rd] check warning with .onLoad() and setClass()

2013-10-03 Thread John Chambers
Don't use .onLoad() to set class (or other nontrivial) information at load time. Use setLoadActions(), which was created exactly to get around the limitations of .onLoad(). For an example, see the Rcpp package, which uses this to set up load-time C++ linkages. John Chambers On Oct 3, 2013, a

[Rd] Including R code from another package...

2013-10-03 Thread Jonathan Greenberg
R-developers: I had a quick question for the group -- let's say a package I am developing depends on a single, small function from a large CRAN-listed package. I can, of course, set a dependency within my own package, but are there means by which I can include the R script + man file DIRECTLY in

Re: [Rd] Including R code from another package...

2013-10-03 Thread Greg Snow
If the package is on CRAN then the license should be a free one that would let you copy whatever you want from it. However it would be most polite to contact the original author first. I know that I have given permission for a couple of my functions to be included in other packages where it would

Re: [Rd] Including R code from another package...

2013-10-03 Thread Uwe Ligges
On 03.10.2013 21:39, Greg Snow wrote: If the package is on CRAN then the license should be a free one that would let you copy whatever you want from it. That is not true for all CRAN packages. However it would be most polite to contact the original author first. I know that I have given p

Re: [Rd] R-3.0.2 - Win7_64 - alone_decoder.c: Permission denied error

2013-10-03 Thread Uwe Ligges
On 30.09.2013 19:47, Adler, Avraham wrote: Hello. When trying to compile R-3.0.2 on Windows 7 64bit, I get an error relating to "alone_decoder.c: Permission denied." The entire error code is copied below. gcc -std=gnu99 -m64 -shared -o Riconv.dll Riconv.def win_iconv.o touc

[Rd] [PATCH] file.access returns success for NA

2013-10-03 Thread Scott Kostyshak
Currently on R I get the following: > file.access(c("doesNotExist", NA)) doesNotExist -10 where 0 means success. Is the 0 correct? I was expecting either NA or -1. ?file.access does not mention how NA values should be handled. The subsection "3.3.4 NA handling" from the R Language Definit