Learn R Programming

cleanr (version 1.1.3)

tidy_findings: tidy findings

Description

remove TRUE converted to class character from findings.

Usage

tidy_findings(findings)

Arguments

findings
a character vector with possibly some elements reading "TRUE" or a vector of TRUES.

Value

a character vector without any element reading "TRUE" or NULL.

Details

check_directory, check_file, check_functions_in_file and check_function_layout all collect tryCatch to collect either TRUE for a check passed or a character holding a conditions message. This function deletes the TRUES.

Examples

Run this code
findings <- c("some signal caught", rep("TRUE", 3))
cleanr:::tidy_findings(findings)

Run the code above in your browser using DataLab