Learn R Programming

typehint (version 0.1.2)

typehint: Package 'typehint'

Description

Automatically check the data type, number and size of dimensions, and values of function arguments with simple type hint comments in the function code.

Arguments

Value

None.

Author

Joachim Zuckarelli, joachim@zuckarelli.de, @jsugarelli

Details

Type hints are special comments with a leading #| within a function body indicating the intended nature of the function's arguments in terms of data types, dimensions and even permitted values. The actual parameters with which the function is called can be evaluated against these type hint comments using the check_types() function.

See Also

Other typehint: check_types(), show_typehints()