tests/testthat/test_runfolder.R

test_that("works as expected", {

  t = capture.output( runfolder( test_file('') ) )
  expect_true( cc( t, sep = '' ) != '' )

  # test edit.on.err
  t = capture.output( runfolder( test_file(''), edit.on.err = FALSE ) )
  expect_true( cc( t, sep = '' ) != '' )
  
  expect_error(
    runfolder( '/this/does/not/exist' ),
    'not found'
  )

})

Try the easyr package in your browser

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

easyr documentation built on March 31, 2023, 6:22 p.m.