deprecate_arg: Handle deprecated argument

View source: R/deprecate-args.R

deprecate_argR Documentation

Handle deprecated argument

Description

Handle deprecated argument

Usage

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

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

Value

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


socialmixr documentation built on April 29, 2026, 9:07 a.m.