R/I_clusterExport.R

Defines functions .clusterExport

# Export objects with names in "toExport" from "envir" enviroment to "cluster".
# If ALL == TRUE it exports all the objects in "envir"
.clusterExport <- function(cluster, envir = parent.frame(), toExport = c(), ALL = FALSE)
{
  allNames <- toExport
  
  if(ALL) allNames <- c(allNames, ls(envir = envir))
  
  clusterExport(cluster, varlist = allNames, envir = envir)
}

Try the synlik package in your browser

Any scripts or data that you put into this service are public.

synlik documentation built on March 7, 2023, 8:39 p.m.