Skip to contents

This function runs a workflow of the minimum number of checks required for a user to run dbGaPCheckup_required_field_check; the checks include dbGaP_required_field_check, dimension_check, and name_check.

Usage

short_precheck(dict, data)

Arguments

dict

Data dictionary.

data

Data set.

Value

Tibble containing the following information for each check: (1) Time (time stamp); (2) Name (name of the function); (3) Status (Passed/Failed); (4) Message (A copy of the message the function printed out); (5) Information (More detailed information about the potential errors identified).

Examples

data(ExampleB)
short_precheck(DD.dict.B, DS.data.B)
#> # A tibble: 3 × 5
#>   Time                Function        Status Message                 Information
#>   <dttm>              <chr>           <chr>  <chr>                   <named lis>
#> 1 2023-09-27 11:01:20 field_check     Passed Passed: required field… <lgl [4]>  
#> 2 2023-09-27 11:01:20 dimension_check Passed Passed: the variable c… <int [2]>  
#> 3 2023-09-27 11:01:20 name_check      Passed Passed: the variable n… <chr [1]>