inst/oldcode/intro.R

## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
    eval = FALSE
)

## ------------------------------------------------------------------------
#  
#  library(autoparallel)
#  
#  autoparallel("code.R")

## ------------------------------------------------------------------------
#  pcode = makeParallel("code.R"
#      , clean_first = FALSE
#      , run_now = FALSE
#      , cluster_type = "FORK"
#      , nnodes = 4
#  )
#  
#  # visual representation of the graph structure
#  plot(pcode)
#  
#  # Save the parallel version of the script
#  save_code(pcode, "pcode.R")
#  
#  # Run the whole thing interactively
#  run_code(pcode)
clarkfitzg/makeParallel documentation built on Nov. 21, 2020, 2:35 a.m.