Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-07 Thread John Chambers
We do need an explicit method here, I think. The issue is that as() uses methods for the generic function coerce() but cannot use inheritance in the usual way (if it did, you would be immediately back with no change, since "integer" inherits from "numeric"). Copying in the general method for co

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-07 Thread Benjamin Tyner
Perhaps it is not that surprising, given that > mode(1L) [1] "numeric" and > is.numeric(1L) [1] TRUE On the other hand, this is curious, to say the least: > is.double(as(1L, "double")) [1] FALSE Here's the surprising behavior: x <- 1L xx <- as(x, "numeric")

Re: [Rd] inconsistency in POSIXlt

2015-12-07 Thread Gabriel Becker
David, I didn't have time to dig through the code completely, but those other two are being set automatically in the C code as far as I can tell, in particular in the code // localtime may change tzname. if (isgmt) { PROTECT(tzone = mkString(tz)); } else { PROTECT(tzon

[Rd] inconsistency in POSIXlt

2015-12-07 Thread Lorenz, David
The documentation for the POSIXlt class states '"POSIXlt" objects will often have an attribute "tzone", a character vector of length 3 giving the time zone name from the TZ environment variable and the names of the base time zone and the alternate (daylight-saving) time zone. Sometimes this may jus

[Rd] Is there a way to call R functions in multithread environment?

2015-12-07 Thread 李琥
I'm developing program in c++ and R on windows environment. The program is mainly writen using c++ and call R interface to do some statistic work. The program is multithreaded. However, R can only be initiated once in a process. Is there a way to call R functions in multithread environment su

[Rd] Can intel c++ compiler be used to compile RInside on windows?

2015-12-07 Thread 李琥
Hi, We know that the visual c++ can not compile RInside on windows environment. I have compiled RInside using MinGW on windows successfully. I also find that someone is using QT sdk. My question is, can intel c++ compiler be used to compile RInside on window? If so, it will be very conveni

Re: [Rd] compile question

2015-12-07 Thread Michael Felt
On 2015-11-23 18:52, aixtools wrote: Starting all over again with R-devel of 22-11-2015. Actually, reverting back to R-3.1.3 as that has built better, and I shall apply lessons learned as I move along. I have had a number of e-mail exchanges with people who support gcc for POWER, and have lea