Error attempting doSMP example

后端 未结 2 932
情话喂你
情话喂你 2021-01-27 23:42

I\'m attempting to run the simple example in the doSMP vignette, but get the following error. First, I\'m not sure how there is an existing doSMP session since I executed the c

相关标签:
2条回答
  • 2021-01-28 00:17

    Closing out this question - the package is too buggy for use. If someone else has gotten this to work reliably, then please respond and I'll un-mark this post as the answer.

    0 讨论(0)
  • 2021-01-28 00:26

    A task queue is created by doSMP, whenever you call the startWorkers function. If you don't call stopWorkers() before exiting your R session, then the interprocess communication resources used to start the task queue will still exist after exiting R.

    You can delete the task queue as follows:

    >rmSessions(all.names=TRUE)
    attempting to delete qnames: doSMP1, doSMP2, doSMP3, doSMP4, doSMP5, doSMP6, doSMP7, doSMP8
    successfully deleted queues: doSMP1, doSMP2, doSMP3, doSMP4, doSMP5
    

    Now any subsequent calls to startWorkers() shoudn't create any warnings. This is documented in the help file for 'rmSessions'.

    Stephen Weller
    Revolution Analytics Technical Support Engineer
    Revolution Analytics, Inc.
    1505 Westlake Ave North Suite 300
    Seattle, WA 98109

    0 讨论(0)
提交回复
热议问题