Skip to contents

Functions compatible with optim have the parameter named par as their first formal argument where each value is a respective free parameter to be optimized.

Usage

is_optim_compatible(fn)

Arguments

fn

function A non-primitive function.

Value

logical(1)

TRUE if the first value of formalArg(fn) is "par", otherwise FALSE.