Skip to content
Back to formatted view

Raw Message

Message-ID: <CA672E2A.4877%schmidt@lone-star.de>
Date: 2011-08-09T16:34:18Z
From: Sebastian Schmidt
Subject: Multicore and as.POSIXct on MacOS Lion

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