inst/jobs-mandelbrot/todo/job02/hot/patch.R

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# This code will be evaluated whenever sourceHotCode() is called by the Job.
# Note that the code will be evaluated in the calling environment, which
# in this example is onRun().
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

cat("In patch.R...\n");

if (!exists("patchCount"))
  patchCount <- 0;
patchCount <- patchCount + 1;

# Change the title
title <- sprintf("Mandelbrot w/ patch #%d", as.integer(patchCount));

cat("In patch.R...done\n");

Try the R.batch package in your browser

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

R.batch documentation built on May 2, 2019, 4:58 p.m.