Jonathan, maybe .Last.value ?

Etienne


2013/2/23 Jonathan Greenberg <jgrn@illinois.edu>

> To clarify: if I "forget" to store a cluster object:
>
> myfunction <- function()
> {
> library("parallel")
> cl <- makeCluster(2,type="PSOCK")
> setDefaultCluster(cl)
> return(cl)
> }
>
> myfunction()
>
> Is there any way to stop this running cluster short of quitting out of R?
>
> --j
>
>
>
> On Sat, Feb 23, 2013 at 2:51 PM, Jonathan Greenberg <jgrn@illinois.edu>
> wrote:
> > R-sig-hpc'ers:
> >
> > If I set a parallel cluster object using setDefaultCluster, is there
> > any way to recover that object (basically a "getDefaultCluster"
> > function)?
> >
> > --j
> >
> >
> > --
> > Jonathan A. Greenberg, PhD
> > Assistant Professor
> > Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
> > Department of Geography and Geographic Information Science
> > University of Illinois at Urbana-Champaign
> > 607 South Mathews Avenue, MC 150
> > Urbana, IL 61801
> > Phone: 217-300-1924
> > http://www.geog.illinois.edu/~jgrn/
> > AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307, Skype: jgrn3007
>
>
>
> --
> Jonathan A. Greenberg, PhD
> Assistant Professor
> Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
> Department of Geography and Geographic Information Science
> University of Illinois at Urbana-Champaign
> 607 South Mathews Avenue, MC 150
> Urbana, IL 61801
> Phone: 217-300-1924
> http://www.geog.illinois.edu/~jgrn/
> AIM: jgrn307, MSN: jgrn307@hotmail.com, Gchat: jgrn307, Skype: jgrn3007
>
> _______________________________________________
> R-sig-hpc mailing list
> R-sig-hpc@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>

	[[alternative HTML version deleted]]

