Skip to contents

Missing Input Checkers

Check if the function input is missing or not

chk_missing() vld_missing()
Check Missing Argument
chk_not_missing() vld_not_missing()
Check Not Missing Argument

… Checkers

Check if the function input comes from … (dot-dot-dot) or not

chk_used() vld_used()
Check ... Used
chk_unused() vld_unused()
Check ... Unused

External Data Source Checkers

Check if the function input is a valid external data source

chk_file() vld_file()
Check File Exists
chk_ext() vld_ext()
Check File Extension
chk_dir() vld_dir()
Check Directory Exists

NULL Checkers

Check if the function input is NULL or not or something else

chk_null() vld_null()
Check NULL
chk_not_null() vld_not_null()
Check not NULL
chk_null_or()
Check NULL Or

Data Structure Checkers

Check if the function input has a specific data structure

Data Type Checkers

Check if the function input has a data type

Whole Number Checkers

Check if the function input is a whole number, whether explicitly an integer or a double type without fractional parts

Factor Checker

Check if the function input is a factor

Scalar Checkers

Check if the function input is a vector of length 1

Date or DateTime Checkers

Check if the function input is of class Date or DateTime

Time Zone Checker

Check if the function input is a Time Zone

chk_tz() vld_tz()
Check Time Zone

All Elements Checker

Check if the function input has a characteristic shared by all its elements

chk_all() vld_all()
Check All

Function Checker

Check if the function input is another function

Names Checkers

Check if the function input has names and are valid

Range Checkers

Check if the function input is part of a range of values

chk_range() vld_range()
Checks range of non-missing values
chk_lt() vld_lt()
Check Less Than
chk_lte() vld_lte()
Check Less Than or Equal To
chk_gt() vld_gt()
Check Greater Than
chk_gte() vld_gte()
Check Greater Than or Equal To

Equal Checkers

Check if the function input is equal or similar to a predefined object

Order Checker

Check if the function input are numbers in increasing order

chk_sorted() vld_sorted()
Check Sorted

Set Checkers

Check if the function input is composed by certain elements

Identity Checkers

Check if the function input belongs to a class

chk_is() vld_is()
Check Class
chk_s3_class() vld_s3_class()
Check Type
chk_s4_class() vld_s4_class()
Check Inherits from S4 Class

REGEX Checker

Check if the function input matches a REGEX

chk_match() vld_match()
Check Matches

Length Checkers

Check if the function input object’s length is a specific value or if because of its length can be strictly recycled

Quality Checkers (Miscellaneous)

Check if the function input meet some user defined quality criteria

chk_not_any_na() vld_not_any_na()
Check Not Any Missing Values
chk_not_empty() vld_not_empty()
Check Not Empty
chk_sorted() vld_sorted()
Check Sorted
chk_unique() vld_unique()
Check Unique
chk_join() vld_join()
Check Join
chkor_vld()
Chk OR

chk_ Function Extenders

Extending chk_ functions

deparse_backtick_chk() backtick_chk() unbacktick_chk()
Deparse Backtick
message_chk()
Construct Tidyverse Style Message
abort_chk()
Abort Check
expect_chk_error()
Expect Chk Error

Message Generators

Generating messages

err() wrn() msg()
Stop, Warning and Message Messages

String Manipulators

Manipulating strings

p() p0()
Concatenate Strings
cc()
Concatenate with Commas

check_ Functions

Checks more properties about the objects

check_data()
Check Data
check_dim()
Check Dimension
check_dirs()
Check Directories Exist
check_files()
Check Files Exist
check_key()
Check Key
check_length()
Check Length
check_names()
Check Names
check_values()
Check Values and Class

Deprecated Functions

Functions that have been deprecated

chk_chr() vld_chr() deprecated
Check Character Scalar
chk_dbl() vld_dbl() deprecated
Check Double Scalar
chk_lgl() vld_lgl()
Check Logical Scalar
chk_wnum() vld_wnum() deprecated
Check Whole Numeric Scalar
chkor()
Check OR