Skip to contents

Create Warning About a Deprecated Function

Usage

warningDeprecated(old_name, new_name, parentheses = TRUE)

Arguments

old_name

name of deprecated function

new_name

name of new function to be used instead

parentheses

logical. Should parentheses be printed after the names in the output? Default: TRUE.

Examples

if (FALSE) {
warningDeprecated("old_function()", "new_function()")
}