validMsg: Conditionally append result to validity message

Description Usage Arguments Details Author(s) Examples

View source: R/tools.R

Description

This function facilitates constructing messages during S4 class validation, and is meant for developer rather than end-user use.

Usage

1
validMsg(msg, result)

Arguments

msg

A character vector or NULL.

result

Any vector.

Details

This function appends result to msg, but only if result is a character vector.

Author(s)

Martin Morgan <[email protected]>

Examples

1
2
3
4
msg <- NULL
validMsg(msg, FALSE) # still NULL
msg <- validMsg(msg, "one")
validMsg(msg, "two")

Bioconductor/Biobase documentation built on June 16, 2018, 10:46 p.m.