[Rsiena-help] Update failed

Tom Snijders tom.snijders at nuffield.ox.ac.uk
Fri Oct 14 22:52:15 CEST 2016


Dear George,

I see that it is OK now.  Thank you! I have no time for further reactions now, am packing for a no-internet holiday of a week. I’ll return to you after I’m back.

Best wishes, thanks a lot,
Tom



================================================================
Tom A.B. Snijders
Professor of Statistics and Methodology
Dept. of Sociology, University of Groningen
Emeritus Fellow, Nuffield College, University of Oxford
Associate Member, Dept. of Statistics, University of Oxford
http://www.stats.ox.ac.uk/~snijders/

From: George Vega Yon [mailto:g.vegayon at gmail.com]
Sent: 14 October 2016 20:38
To: Tom Snijders
Cc: rsiena-help at lists.r-forge.r-project.org; Christian Steglich (c.e.g.steglich at rug.nl) (c.e.g.steglich at rug.nl)
Subject: Re: Update failed

Dear Prof. Snijders,

I see the error, -markeForkCluster- is meaningless in windows, that's why the error. I've change it to -makeCluster- which "is cross platform" so the error shouldn't show up again. Plus, I've included details in siena07.Rd (the function manual) about it:

> In the case of using multiple processors, there are two options for telling siena07 to use them. By specifying the options useCluster, nbrNodes, clusterString and initC, siena07 will create a cluster object that will be used by the parallel package. After finishing the estimation procedure, siena07 will automatically stop the cluster. Alternatively, instead of having the function to create a cluster, the user may provide its own by specifying the option cl, similar to what the boot function does in the boot package. By using the option cl the user may be able to create more complex clusters (see examples below).

Furthermore, I've included a couple of examples in the manual siena07.Rd:

# Running in multiple processors -----------------------------------------------
## Not run:

# Using 8 processors
ans2 <- siena07(myalgorithm, data=mydata, effects=myeff, batch=TRUE,
                useCluster=TRUE, nbrNodes=8, initC=TRUE)

# Loading the parallel package and creating a cluster
# with 8 processors (this should be equivalent)

library(parallel)
cl <- makeCluster(8)

ans3 <- siena07(myalgorithm, data=mydata, effects=myeff, batch=TRUE,
                cl = cl)

# Notice that now -siena07- won't stop the cluster for you.
stopCluster(cl)

# You can create even more complex clusters using several computers. In this
# example we are creating a cluster with 3*8 = 24 processors on three
# different machines.
cl <- makePSOCKcluster(
    rep(c('localhost', 'machine2.website.com<http://machine2.website.com>' , 'machine3.website.com<http://machine3.website.com>'), 8),
    user='myusername', rshcmd='ssh -p PORTNUMBER')

ans4 <- siena07(myalgorithm, data=mydata, effects=myeff, batch=TRUE,
                cl = cl)
stopCluster(cl)

I've already pushed the new changes and the R CMD check is OK now.

Best,


George G. Vega Yon
+1 (626) 381 8171
http://cana.usc.edu/vegayon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20161014/ba86f0cf/attachment-0001.html>


More information about the Rsiena-help mailing list