Learn R Programming

socialmixr (version 0.5.0)

deprecate_arg: Handle deprecated argument

Description

Handle deprecated argument

Usage

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

Value

the value to use (new_arg if provided, otherwise old_arg)

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