Learn R Programming

Rdpack (version 0.4-4)

inspect_args: Inspect the argument section of an Rd object

Description

Inspect the argument section of an Rd object.

Usage

inspect_args(rdo, i_usage)

Arguments

rdo
an Rd object describing functions.
i_usage
see Details.

Value

  • TRUE if the arguments in the documentation match the (union of) the actual arguments of the described functions, FALSE otherwise. The returned logical value has attribute `details' which is a list with the following components.
  • rdo_argnamesarguments described in the documentation object, rdo.
  • cur_argnamesarguments in the current definitions of the described functions.
  • added_argnamesnew arguments
  • removed_argnamesremoved (dropped) arguments.

Details

inspect_args checks if the arguments in the documentation object rdo match the (union of) the actual arguments of the functions it describes. If i_usage is missing, it is computed by inspecting the current definitions of the functions described in rdo, see inspect_usage. This argument is likely to be supplied if the function calling inspect_args has already computed it for other purposes.