tidy_findings {cleanr}R Documentation

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.

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.

Value

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

Examples

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

[Package cleanr version 1.2.0 Index]