tests/testthat/test-r-process.R

test_that("create and run r_process", {
  options <- r_process_options(func = function() 1 + 1)
  x <- r_process$new(options)
  x$wait()
  expect_equal(x$get_result(), 2)
  rm(x)
  gc()
})
MangoTheCat/callr documentation built on March 26, 2024, 11:23 a.m.