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

David Smith david at revolutionanalytics.com
Fri Feb 11 19:38:34 CET 2011


Are you using doMC within the Mac GUI or from the Terminal? The doMC
package doesn't work within the GUI, you need to run R directly from
the command line.

# David Smith

On Fri, Feb 11, 2011 at 8:56 AM, ivo welch <ivowel at gmail.com> wrote:
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
David M Smith <david at revolutionanalytics.com>
VP of Marketing, Revolution Analytics  http://blog.revolutionanalytics.com
Tel: +1 (650) 646-9523 (Palo Alto, CA, USA)



More information about the R-help mailing list