Description Usage Arguments Value See Also Examples
View source: R/Testproject_Functions.R
Reference database is identified by containing basename(dir_test)
in
the file name.
1 | compare_test_output(dir_test, dir_ref = NULL)
|
dir_test |
A character string. Path to test project folder. |
dir_ref |
A character string. Path to folder with reference database. |
A list with at least one element:
The basename of the reference database; empty string if not found.
The output from compare_two_dbOutput
, if any.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Run test project 4 inside development version of package
# Assume that working directory is `tests/test_data/TestPrj4/`
if (file.exists("SFSW2_project_code.R")) {
source("SFSW2_project_code.R")
# Compare output database with reference database
comp <- compare_test_output(".", dir_ref = "../0_ReferenceOutput/")
# Clean up
delete_test_output(".")
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.