compare_test_output: Compare test project output database with reference database

Description Usage Arguments Value See Also Examples

View source: R/Testproject_Functions.R

Description

Reference database is identified by containing basename(dir_test) in the file name.

Usage

1
compare_test_output(dir_test, dir_ref = NULL)

Arguments

dir_test

A character string. Path to test project folder.

dir_ref

A character string. Path to folder with reference database.

Value

A list with at least one element:

  1. The basename of the reference database; empty string if not found.

  2. The output from compare_two_dbOutput, if any.

See Also

compare_two_dbOutput

Examples

 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)

Burke-Lauenroth-Lab/rSFSW2 documentation built on Aug. 14, 2020, 5:20 p.m.