inst/oldcode/simple.R

# simple.R

ffast = function(x) rnorm(1)

fslow = function(x){
    Sys.sleep(0.1)
    rnorm(1)
}

z = 1:10
r1 = lapply(z, ffast)
r2 = lapply(z, fslow)

Try the makeParallel package in your browser

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

makeParallel documentation built on May 2, 2019, 9:40 a.m.