R/test_furrr.R

Defines functions run_fun test_furrr

#' @export

test_furrr <- function(){
  intervals <- seq(1,60)
  oplan <- plan(multisession, workers = 60)
  on.exit(plan(oplan), add = TRUE)
  future_walk(intervals, ~ run_fun(.x))
}
#' @export
run_fun <- function(s){
  message(s)
  demo("mandelbrot", package = "future", ask = FALSE)
}
jinyancool/fakepkg documentation built on May 27, 2022, 10:03 p.m.