[R] Package snow: is there any way to check if a cluster is "acticve"

Claudia Beleites claudia.beleites at ipht-jena.de
Thu Oct 13 15:06:54 CEST 2011


Sören,

have a look at package snowfall which provides sfIsRunning.

HTH

Claudia


Am 13.10.2011 06:34, schrieb Søren Højsgaard:
> Is there a 'proper' way of checking if cluster is active. For example, I create a cluster called .PBcluster
>
>> str(.PBcluster)
> List of 4
>   $ :List of 3
>    ..$ con :Classes 'sockconn', 'connection'  atomic [1:1] 3
>    .. .. ..- attr(*, "conn_id")=<externalptr>
>    ..$ host: chr "localhost"
>    ..$ rank: int 1
>    ..- attr(*, "class")= chr "SOCKnode"
>   $ :List of 3
> ....
>
> Then I stop it with
>> stopCluster(.PBcluster)
>> .PBcluster
> [[1]]
> $con
> Error in summary.connection(x) : invalid connection
>
>> str(.PBcluster)
> List of 4
>   $ :List of 3
>    ..$ con :Classes 'sockconn', 'connection'  atomic [1:1] 3
>    .. .. ..- attr(*, "conn_id")=<externalptr>
>    ..$ host: chr "localhost"
>    ..$ rank: int 1
>    ..- attr(*, "class")= chr "SOCKnode"
>
> - but is there a way in which I can check if the cluster is active??
>
> Regards
> Søren
> ______________________________________________
> 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.


-- 
Claudia Beleites
Spectroscopy/Imaging
Institute of Photonic Technology
Albert-Einstein-Str. 9
07745 Jena
Germany

email: claudia.beleites at ipht-jena.de
phone: +49 3641 206-133
fax:   +49 2641 206-399



More information about the R-help mailing list