tests/testthat/test_saveRev.R

library(Revticulate)
library(testthat)

test_that(
  "Testing saveRev()",
  {
    file <- tempfile()

    expect_false(file.exists(file))

    doRev("2", evaluate = F)

    saveRev(file)

    expect_true(file.exists(file))

    clearRev()
  }
)

Try the Revticulate package in your browser

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

Revticulate documentation built on March 18, 2022, 6:47 p.m.