[R-SIG-Mac] Multicore and as.POSIXct on MacOS Lion
Sebastian Schmidt
schmidt at lone-star.de
Tue Aug 9 18:34:18 CEST 2011
Multicore and/or as.POSIXct seems to have problems with MacOS Lion.
The following program (from the pvec help) runs fine:
dates <- sprintf('%04d-%02d-%02d', as.integer(2000+rnorm(1e5)),
as.integer(runif(1e5,1,12)), as.integer(runif(1e5,1,28)))
system.time(a <- as.POSIXct(dates))
but
system.time(b <- pvec(dates, as.POSIXct))
blocks all cpu cores and does not terminate on both my Apple machines. I
tested that on MacOS Lion with multicore 1.5 and 1.6 under R 2.13.1 and R
2.12.2. On snow leopard everything ran smooth.
Is this a problem with R libraries or with the OS? Are there any known
workarounds?
Thank you very much,
Sebastian
More information about the R-SIG-Mac
mailing list