The test_derived_function
should be used when testing a derived function. This
helper function is stored within the tests/testthat/helper-utils.R
file. The
recommended workflow with this function is to:
tests/testdata
folderread.csv
functiontest_derived_function
function within the test case with the
read in CSV file and the function to testTake a look at the pack_years_fun
test within the
tests/testthat/test-smoking.R
file for an example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.