inst/testme/test-demo.R

#' @tags detritus-files
#' @tags mirai_multisession

library(future.mirai)

options(future.demo.mandelbrot.nrow = 2L)
options(future.demo.mandelbrot.resolution = 50L)
options(future.demo.mandelbrot.delay = FALSE)

message("*** Demos ...")

message("*** Mandelbrot demo of the 'future' package ...")

plan(mirai_multisession, workers = 2)
demo("mandelbrot", package = "future", ask = FALSE)
plan(sequential)

message("*** Demos ... DONE")

Try the future.mirai package in your browser

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

future.mirai documentation built on June 8, 2025, 12:43 p.m.