update_function_arguments: Change the formal arguments of a function

View source: R/update_function_arguments.R

update_function_argumentsR Documentation

Change the formal arguments of a function

Description

If the function is specified within a package, then update the function within the namespace of the package.

Usage

update_function_arguments(
  function_name,
  package_name = NULL,
  envir = parent.frame(),
  ...
)

Arguments

function_name

character name of function

package_name

character name of package. Set this if you want the function to be updated within the package namespace. If this is unset then the changed function is placed in the specified environment

envir

environment to place the function if package_name not set

...

Dots sent to rlang::list2

Value

TRUE otherwise should throw an error


jdreyf/jdcbioinfo documentation built on Feb. 12, 2025, 4:30 p.m.