parse_argument: Parse a 'function_' argument definition.

Description Usage Arguments Details Value

View source: R/parse_argument.R

Description

An argument definition as passed to function_ is checked and parsed. The argument is expected to have the syntax name ~ type: default where the : default is optional specification of the default value.

Usage

1

Arguments

arg

A language object representing the argument.

Details

Note that since a default value can be NULL, it is necessary to check whether the default was specified in the argument, see the return value.

Value

list with the following entries:


smbache/ensurer documentation built on May 26, 2017, 12:25 p.m.