argument_check: argument_check

View source: R/argument_check.R

argument_checkR Documentation

argument_check

Description

A function for streamlining the argument-checking process. It is not exported.

Usage

argument_check(x, name, type, len_check = FALSE, len_req = 1)

Arguments

x

an argument.

name

the name of the argument.

type

a string indicating what type the argument should be.

len_check

a logical scalar indicating whether the argument should be checked for length.

len_req

a numeric scalar indicating the required length for the argument.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.