Learn R Programming

socialmixr (version 0.7.0)

deprecate_arg: Handle deprecated argument

Description

Handle deprecated argument

Usage

deprecate_arg(old_arg, new_arg, old_name, new_name, fn_name, version = "0.5.0")

Value

new_arg, or old_arg if it is supplied, in which case a deprecation warning is issued via lifecycle::deprecate_warn().

Arguments

old_arg

the deprecated argument value

new_arg

the new argument value

old_name

the old argument name (with dot)

new_name

the new argument name (with underscore)

fn_name

the function name

version

the version when deprecated