Skip to content
Patrick Miller edited this page Feb 8, 2017 · 9 revisions

Welcome to the distributr wiki!

This will be a collection of examples and other documentation providing inspiration for organizing simulations locally and on SGE.

Installation

The development version will always be available via:

devtools::install_github("patr1ckm/distributr")

It may be on CRAN in the near future, and which point the following would work:

install.packages("distributr")

Configuration

None.

Getting Started with SGE

The simplest way is to run distributr::sge_test() when in an R session on a SGE head node.

To get started with a typical workflow, consider the following example:

do.one <- function(n, mu, sd){ mean(rnorm(n, mu, sd)) }
sim <- gapply(do.one, n = c(50, 100, 500), mu = c(1,5), sd = c(1, 5, 10), .eval=F)
sim <- setup(sim, .reps=500, .mc.cores = 5)
submit(sim)   
res <- tidy(collect())