write_testfile.Rd
Write testdata to a file formatted for use with the testthat package.
write_testfile( testdata, func_name, filename = NULL, filepath = NULL, overwrite = FALSE )
testdata | tibble |
---|---|
func_name | charater. The name of the function being tested. Typically the name of the sheet. |
filename | character (vector). The default is testsheet_<sheet>.R. The number of given filenames must match the length of testdata. |
filepath | character. The defallt is the current working directory |
overwrite | boolean. The default is FALSE. |
#>#>write_testfile(testdata, "sum", filename="mycustomfile.R")#>