testthat::expect_equal
writeExpectTest(expr, filename = "", ...)
cat
append
NULL
expect_equal
writeExpectTest(head(1:10)) writeExpectTest(head(cars))
Run the code above in your browser using DataCamp Workspace