tests/testthat/test-export.R

context("Export data (rtry_export)")


test_that("rtry_export handles empty argument", {
  message = "Please make sure you have specified the data to be saved or the output path."

  expect_message(rtry_export(), message)
  expect_message(rtry_export(TRYdata), message)
})

Try the rtry package in your browser

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

rtry documentation built on Aug. 10, 2023, 1:07 a.m.