message.if {Pigengene}R Documentation

Conditional messaging.

Description

Messages only if verbose is more than 0 and write in a text file if provided.

Usage

message.if(me=NULL, verbose=0, txtFile=NULL, append=TRUE, ...)

Arguments

me

The Message. Can be a character vector.

verbose

A integer.

txtFile

The text file in which the message will be written. Set to NULL to disable.

append

logical. Set to FALSE to overwrite txtFile.

...

Arguments to be passed to capture.output.

Value

NULL

Author(s)

Amir Foroushani

Examples

message.if("Hello world!", verbose=1)

[Package Pigengene version 1.19.52 Index]