R/checkpoint_freq.r

Defines functions check_checkpoint_freq

check_checkpoint_freq = function(checkpoint_freq)
{
  freq = as.integer(checkpoint_freq)
  if (is.na(freq) || length(freq) != 1L || freq < 1L)
    comm.stop("argument 'checkpoint_freq' must be a positive integer")
  
  freq
}
RBigData/tasktools documentation built on April 10, 2020, 2:36 p.m.