tests/testthat/test_astext.R

test_that( "works as expected", {

  expect_equal(
    astext( c( 1, 2, 4 ) ),
    "c( 1, 2, 4 )"
  )

  expect_equal(
    astext( c( 'a', 'b', 'c' ) ),
    "c( 'a', 'b', 'c' )"
  )

})

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.