# NOT RUN {
ipart <- ipartitions(10)
ipart$getnext()
ipart$getnext(2)
ipart$getnext(layout = "column", drop = FALSE)
# collect remaining partitions
ipart$collect()
library(foreach)
foreach(x = ipartitions(6, 2), .combine=c) %do% {
prod(x)
}
# }
Run the code above in your browser using DataLab