tests/testthat/test_read.txt.R

test_that( "read text file", {

  expect_equal(
    read.txt( 
      test_file( 'some-text.txt' )
    ),
    'This is some text 530.'
  )

})

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.