[R] foreach with registerDoMC on R 2.12.0 OSX 10.6 --- errors and warnings

ivo welch ivowel at gmail.com
Fri Feb 11 17:56:39 CET 2011


some hints for the search engines.

I just did
   install.packages("foreach")
   install.packages("doMC")
   library(doMC)
   registerDoMC()
   library(foreach)
> foreach(i = 1:3) %dopar% sqrt(i)
The process has forked and you cannot use this CoreFoundation
functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
to debug.
The process has forked and you cannot use this CoreFoundation
functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
to debug.
The process has forked and you cannot use this CoreFoundation
functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
to debug.
The process has forked and you cannot use this CoreFoundation
functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
to debug.
Tcl_ServiceModeHook: Notifier not initialized
[[1]]
NULL
[[2]]
[1] 1.414
[[3]]
[1] 1.732
The first element is obviously wrong, and the warning messages are scary.

Restarting R eliminated all the problems.  This seems to be something
odd about the install and load process.



More information about the R-help mailing list