tests/testthat/test_getJobParamDf.R

context("getJobParamDf")

test_that("getJobParamDf", {
  reg = makeTestRegistry()
  grid = batchExpandGrid(reg, function(x,y) x*y, x = 1:3, y = 5)
  expect_equal(getJobParamDf(reg), grid)
  expect_equal(getJobParamDf(reg, ids = 2:3), grid[2:3,])
})

Try the BatchJobs package in your browser

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

BatchJobs documentation built on March 21, 2022, 5:05 p.m.