Readable check functions to ensure code integrity.


[Up] [Top]

Documentation for package ‘assertive’ version 0.1-8

Help Pages

A B C D F G H I L M N S U

assertive-package Readable check functions to ensure code integrity.

-- A --

assertive Readable check functions to ensure code integrity.
assert_all_are_cas_numbers Does the character vector contain CAS registry numbers?
assert_all_are_classes Is the input the name of a (formally defined) class?
assert_all_are_credit_card_numbers Does the character vector contain credit card numbers?
assert_all_are_date_strings Does the character vector contain dates?
assert_all_are_dirs Is the path a directory? Checks to see if the input path is a directory.
assert_all_are_email_addresses Does the character vector contain email addresses?
assert_all_are_executable_files Is the file accessible?
assert_all_are_existing Does the variable exist?
assert_all_are_existing_files Does the file exist?
assert_all_are_false Is the input TRUE?
assert_all_are_finite Are the inputs (in)finite?
assert_all_are_hex_colours Does the character vector contain hex colours?
assert_all_are_imaginary Is the input real/imaginary?
assert_all_are_infinite Are the inputs (in)finite?
assert_all_are_in_closed_range Is the input in range?
assert_all_are_in_future Is the input in the past/future?
assert_all_are_in_left_open_range Is the input in range?
assert_all_are_in_open_range Is the input in range?
assert_all_are_in_past Is the input in the past/future?
assert_all_are_in_range Is the input in range?
assert_all_are_in_right_open_range Is the input in range?
assert_all_are_ip_addresses Does the character vector contain IP addresses?
assert_all_are_isbn_codes Does the character vector contain ISBN book codes?
assert_all_are_libraries Is the directory a known R library?
assert_all_are_nan Is the input (not) NaN?
assert_all_are_negative Is the input in range?
assert_all_are_non_negative Is the input in range?
assert_all_are_non_positive Is the input in range?
assert_all_are_not_na Is the input present/missing?
assert_all_are_not_nan Is the input (not) NaN?
assert_all_are_numeric_strings Is the input of type character?
assert_all_are_on_os_path Is the path on the OS path?
assert_all_are_percentages Is the input in range?
assert_all_are_positive Is the input in range?
assert_all_are_proportions Is the input in range?
assert_all_are_readable_files Is the file accessible?
assert_all_are_real Is the input real/imaginary?
assert_all_are_true Is the input TRUE?
assert_all_are_uk_car_licences Is the string a valid UK car licence plate number?
assert_all_are_uk_national_insurance_numbers Is the string a valid UK national insurance number?
assert_all_are_uk_postcodes Is the string a valid UK postcode?
assert_all_are_uk_telephone_numbers Is the string a valid UK telephone number?
assert_all_are_us_telephone_numbers Is the string a valid US telephone number?
assert_all_are_us_zip_codes Is the string a valid US zip code?
assert_all_are_valid_variable_names Is the string a valid variable name?
assert_all_are_writable_files Is the file accessible?
assert_all_numbers_are_whole_numbers Is the input a whole number?
assert_all_strings_are_missing_or_empty Is the input of type character?
assert_all_strings_are_not_missing_nor_empty Is the input of type character?
assert_any_are_cas_numbers Does the character vector contain CAS registry numbers?
assert_any_are_classes Is the input the name of a (formally defined) class?
assert_any_are_credit_card_numbers Does the character vector contain credit card numbers?
assert_any_are_date_strings Does the character vector contain dates?
assert_any_are_dirs Is the path a directory? Checks to see if the input path is a directory.
assert_any_are_email_addresses Does the character vector contain email addresses?
assert_any_are_executable_files Is the file accessible?
assert_any_are_existing Does the variable exist?
assert_any_are_existing_files Does the file exist?
assert_any_are_false Is the input TRUE?
assert_any_are_finite Are the inputs (in)finite?
assert_any_are_hex_colours Does the character vector contain hex colours?
assert_any_are_imaginary Is the input real/imaginary?
assert_any_are_infinite Are the inputs (in)finite?
assert_any_are_in_closed_range Is the input in range?
assert_any_are_in_future Is the input in the past/future?
assert_any_are_in_left_open_range Is the input in range?
assert_any_are_in_open_range Is the input in range?
assert_any_are_in_past Is the input in the past/future?
assert_any_are_in_range Is the input in range?
assert_any_are_in_right_open_range Is the input in range?
assert_any_are_ip_addresses Does the character vector contain IP addresses?
assert_any_are_isbn_codes Does the character vector contain ISBN book codes?
assert_any_are_libraries Is the directory a known R library?
assert_any_are_nan Is the input (not) NaN?
assert_any_are_negative Is the input in range?
assert_any_are_non_negative Is the input in range?
assert_any_are_non_positive Is the input in range?
assert_any_are_not_na Is the input present/missing?
assert_any_are_not_nan Is the input (not) NaN?
assert_any_are_numeric_strings Is the input of type character?
assert_any_are_on_os_path Is the path on the OS path?
assert_any_are_percentages Is the input in range?
assert_any_are_positive Is the input in range?
assert_any_are_proportions Is the input in range?
assert_any_are_readable_files Is the file accessible?
assert_any_are_real Is the input real/imaginary?
assert_any_are_true Is the input TRUE?
assert_any_are_uk_car_licences Is the string a valid UK car licence plate number?
assert_any_are_uk_national_insurance_numbers Is the string a valid UK national insurance number?
assert_any_are_uk_postcodes Is the string a valid UK postcode?
assert_any_are_uk_telephone_numbers Is the string a valid UK telephone number?
assert_any_are_us_telephone_numbers Is the string a valid US telephone number?
assert_any_are_us_zip_codes Is the string a valid US zip code?
assert_any_are_valid_variable_names Is the string a valid variable name?
assert_any_are_writable_files Is the file accessible?
assert_any_numbers_are_whole_numbers Is the input a whole number?
assert_any_strings_are_missing_or_empty Is the input of type character?
assert_any_strings_are_not_missing_nor_empty Is the input of type character?
assert_engine Throws an error if a condition isn't met.
assert_has_all_attributes Does the input have the specified attributes?
assert_has_any_attributes Does the input have the specified attributes?
assert_has_colnames Does the input have names?
assert_has_cols Does the input have rows/columns?
assert_has_dimnames Does the input have names?
assert_has_dims Does the input have dimensions?
assert_has_duplicates Does the input have duplicates?
assert_has_names Does the input have names?
assert_has_no_duplicates Does the input have duplicates?
assert_has_rownames Does the input have names?
assert_has_rows Does the input have rows/columns?
assert_has_terms Does the input have terms?
assert_is_64_bit_os What OS is running?
assert_is_all_of Alternative version of is.
assert_is_any_of Alternative version of is.
assert_is_an_empty_string Is the input of type character?
assert_is_an_integer Is the input an integer?
assert_is_array Is the input an array or matrix?
assert_is_atomic Is the input atomic/recursive/vector?
assert_is_a_bool Is the input logical?
assert_is_a_complex Is the input complex?
assert_is_a_non_empty_string Is the input of type character?
assert_is_a_number Is the input numeric?
assert_is_a_raw Is the input raw?
assert_is_a_string Is the input of type character?
assert_is_batch_mode How is R running?
assert_is_call Is the input a language object?
assert_is_character Is the input of type character?
assert_is_comma_for_decimal_point What does the current locale specify for the decimal point?
assert_is_complex Is the input complex?
assert_is_connection Is the input a connection?
assert_is_data.frame Checks to see if the input is a data.frame.
assert_is_debugged Is the input function being debugged?
assert_is_empty Is the input empty/scalar?
assert_is_empty_model Is the input the empty model?
assert_is_environment Is the input an environment?
assert_is_expression Is the input a language object?
assert_is_factor Is the input an factor?
assert_is_function Is the input a function?
assert_is_identical_to_false Is the input TRUE?
assert_is_identical_to_true Is the input TRUE?
assert_is_incomplete_connection Is the input a connection?
assert_is_integer Is the input an integer?
assert_is_interactive How is R running?
assert_is_language Is the input a language object?
assert_is_leaf Is the input a (dendrogram) leaf?
assert_is_linux What OS is running?
assert_is_list Is the input a list?
assert_is_loaded Is the input DLL loaded?
assert_is_logical Is the input logical?
assert_is_mac What OS is running?
assert_is_matrix Is the input an array or matrix?
assert_is_mts Is the input a time series?
assert_is_name Is the input a language object?
assert_is_non_empty Is the input empty/scalar?
assert_is_non_empty_model Is the input the empty model?
assert_is_not_null Is the input (not) null?
assert_is_null Is the input (not) null?
assert_is_numeric Is the input numeric?
assert_is_open_connection Is the input a connection?
assert_is_ordered Is the input an factor?
assert_is_period_for_decimal_point What does the current locale specify for the decimal point?
assert_is_primitive Is the input a function?
assert_is_qr Is the input a QR decomposition of a matrix?
assert_is_r Are you running R?
assert_is_raster Is the input a raster?
assert_is_raw Is the input raw?
assert_is_recursive Is the input atomic/recursive/vector?
assert_is_relistable Is the input raw?
assert_is_S4 Is the input an S4 object?
assert_is_scalar Is the input empty/scalar?
assert_is_stepfun Is the input a function?
assert_is_symbol Is the input a language object?
assert_is_symmetric_matrix Is the input a symmetric matrix?
assert_is_table Is the input a table?
assert_is_ts Is the input a time series?
assert_is_tskernel Is the input a time series?
assert_is_unix What OS is running?
assert_is_unsorted Is the input unsorted?
assert_is_vector Is the input atomic/recursive/vector?
assert_is_windows What OS is running?

-- B --

bapply Wrapper to vapply that returns booleans.

-- C --

call_and_name Call a function, and give the result names.
cause Get or set the '"cause"' attribute.
cause<- Get or set the '"cause"' attribute.
character_to_list_of_integer_vectors Convert a character vector to a list of integer vectors.
coerce_to Coerce variable to a different class.
create_regex Create a regex from components.

-- D --

d Create regex for repeated digits

-- F --

false FALSE, with a cause of failure.

-- G --

get_name_in_parent Get the name of a variable in the parent frame.

-- H --

has_any_attributes Does the input have any attributes?
has_arg Does the current call have an argument?
has_attributes Does the input have the specified attributes?
has_colnames Does the input have names?
has_cols Does the input have rows/columns?
has_dimnames Does the input have names?
has_dims Does the input have dimensions?
has_duplicates Does the input have duplicates?
has_names Does the input have names?
has_no_duplicates Does the input have duplicates?
has_rownames Does the input have names?
has_rows Does the input have rows/columns?
has_terms Does the input have terms?

-- I --

is2 Alternative version of is.
is_64_bit_os What OS is running?
is_an_empty_string Is the input of type character?
is_an_integer Is the input an integer?
is_array Is the input an array or matrix?
is_atomic Is the input atomic/recursive/vector?
is_a_bool Is the input logical?
is_a_complex Is the input complex?
is_a_non_empty_string Is the input of type character?
is_a_number Is the input numeric?
is_a_raw Is the input raw?
is_a_string Is the input of type character?
is_batch_mode How is R running?
is_call Is the input a language object?
is_cas_number Does the character vector contain CAS registry numbers?
is_character Is the input of type character?
is_class Is the input the name of a (formally defined) class?
is_comma_for_decimal_point What does the current locale specify for the decimal point?
is_complex Is the input complex?
is_connection Is the input a connection?
is_credit_card_number Does the character vector contain credit card numbers?
is_data.frame Checks to see if the input is a data.frame.
is_date_string Does the character vector contain dates?
is_debugged Is the input function being debugged?
is_dir Is the path a directory? Checks to see if the input path is a directory.
is_email_address Does the character vector contain email addresses?
is_empty Is the input empty/scalar?
is_empty_model Is the input the empty model?
is_environment Is the input an environment?
is_error_free Does the code run without throwing an error?
is_existing Does the variable exist?
is_existing_file Does the file exist?
is_expression Is the input a language object?
is_ex_file Is the file accessible?
is_factor Is the input an factor?
is_false Is the input TRUE?
is_finite Are the inputs (in)finite?
is_function Is the input a function?
is_hex_colour Does the character vector contain hex colours?
is_honorific Is the string an honorific?
is_identical_to_false Is the input TRUE?
is_identical_to_true Is the input TRUE?
is_imaginary Is the input real/imaginary?
is_incomplete_connection Is the input a connection?
is_infinite Are the inputs (in)finite?
is_integer Is the input an integer?
is_interactive How is R running?
is_in_closed_range Is the input in range?
is_in_future Is the input in the past/future?
is_in_left_open_range Is the input in range?
is_in_open_range Is the input in range?
is_in_past Is the input in the past/future?
is_in_range Is the input in range?
is_in_right_open_range Is the input in range?
is_ip_address Does the character vector contain IP addresses?
is_isbn10_code Does the character vector contain ISBN book codes?
is_isbn13_code Does the character vector contain ISBN book codes?
is_isbn_code Does the character vector contain ISBN book codes?
is_language Is the input a language object?
is_leaf Is the input a (dendrogram) leaf?
is_library Is the directory a known R library?
is_linux What OS is running?
is_list Is the input a list?
is_loaded Is the input DLL loaded?
is_logical Is the input logical?
is_mac What OS is running?
is_matrix Is the input an array or matrix?
is_missing_or_empty_character Is the input of type character?
is_mts Is the input a time series?
is_na Is the input present/missing?
is_name Is the input a language object?
is_nan Is the input (not) NaN?
is_negative Is the input in range?
is_non_empty Is the input empty/scalar?
is_non_empty_model Is the input the empty model?
is_non_negative Is the input in range?
is_non_positive Is the input in range?
is_not_missing_nor_empty_character Is the input of type character?
is_not_na Is the input present/missing?
is_not_nan Is the input (not) NaN?
is_null Is the input (not) null?
is_numeric Is the input numeric?
is_numeric_string Is the input of type character?
is_on_os_path Is the path on the OS path?
is_open_connection Is the input a connection?
is_ordered Is the input an factor?
is_percentage Is the input in range?
is_period_for_decimal_point What does the current locale specify for the decimal point?
is_positive Is the input in range?
is_primitive Is the input a function?
is_proportion Is the input in range?
is_qr Is the input a QR decomposition of a matrix?
is_r Are you running R?
is_raster Is the input a raster?
is_raw Is the input raw?
is_readable_file Is the file accessible?
is_real Is the input real/imaginary?
is_recursive Is the input atomic/recursive/vector?
is_relistable Is the input relistable?
is_S4 Is the input an S4 object?
is_scalar Is the input empty/scalar?
is_stepfun Is the input a function?
is_symbol Is the input a language object?
is_symmetric_matrix Is the input a symmetric matrix?
is_table Is the input a table?
is_true Is the input TRUE?
is_ts Is the input a time series?
is_tskernel Is the input a time series?
is_uk_car_licence Is the string a valid UK car licence plate number?
is_uk_national_insurance_number Is the string a valid UK national insurance number?
is_uk_postcode Is the string a valid UK postcode?
is_uk_telephone_number Is the string a valid UK telephone number?
is_unix What OS is running?
is_unsorted Is the input unsorted?
is_us_telephone_number Is the string a valid US telephone number?
is_us_zip_code Is the string a valid US zip code?
is_valid_r_code Is the input valid R code?
is_valid_variable_name Is the string a valid variable name?
is_vector Is the input atomic/recursive/vector?
is_whole_number Is the input a whole number?
is_windows What OS is running?
is_writable_file Is the file accessible?
is_xxx_for_decimal_point What does the current locale specify for the decimal point?

-- L --

locale_categories Allowed locale categories.

-- M --

matches_regex Does the input match the regular expression?
merge_dots_with_list Merge ellipsis args with a list.
modal_value The most common value in a vector.

-- N --

na NA, with a cause of failure.

-- S --

strip_attributes Strip all attributes from a variable.
strip_invalid_chars Removes invalid characters from a string.
strip_non_alphanumeric Removes invalid characters from a string.
strip_non_numeric Removes invalid characters from a string.
sys_get_locale Get or set the system locale
sys_set_locale Get or set the system locale

-- U --

use_first Only use the first element of a vector.