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
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")
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
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
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
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
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