transform_param: Process @permitted and @default tags

View source: R/roclet_rdx.R

transform_paramR Documentation

Process ⁠@permitted⁠ and ⁠@default⁠ tags

Description

This function processes the ⁠@permitted⁠ and ⁠@default⁠ tags and moves them into the ⁠@param⁠ tag. The default value is taken from the function call if not specified.

Usage

transform_param(block, rdx_permitted_values)

Arguments

block

A block of roxygen tags of one function

Default value

none

rdx_permitted_values

A list of permitted values

The name of the list item can be referenced in the ⁠@permitted⁠ tag by specifying the name in square brackets, e.g., ⁠@permitted [mode]⁠.

Default value

none

Value

The block with the transformed tags


admiraldev documentation built on June 26, 2025, 1:09 a.m.