Readable Check Functions to Ensure Code Integrity


[Up] [Top]

Documentation for package ‘assertive’ version 0.2-4

Help Pages

A B C D F G H I L M N P R S T U W

assertive-package Readable check functions to ensure code integrity.

-- A --

are_identical Are the inputs identical
are_same_length Are the inputs the same length
as.character.file Convert file connections to strings
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_divisible_by Is the input divisible by a number?
assert_all_are_email_addresses Does the character vector contain email addresses?
assert_all_are_empty_files Is a file empty?
assert_all_are_even Is the input divisible by a number?
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_colors Does the character vector contain hex colors?
assert_all_are_hex_colours Does the character vector contain hex colors?
assert_all_are_identical Are the inputs identical
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_negative_infinity Are the inputs (in)finite?
assert_all_are_non_negative Is the input in range?
assert_all_are_non_positive Is the input in range?
assert_all_are_not_missing_nor_empty_characters Is the input of type character?
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_odd Is the input divisible by a number?
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_positive_infinity Are the inputs (in)finite?
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_same_length Are the inputs the same length
assert_all_are_single_characters Is the input a single character?
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_car_licenses 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_whole_numbers Is the input a whole number?
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_divisible_by Is the input divisible by a number?
assert_any_are_email_addresses Does the character vector contain email addresses?
assert_any_are_empty_files Is a file empty?
assert_any_are_even Is the input divisible by a number?
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_colors Does the character vector contain hex colors?
assert_any_are_hex_colours Does the character vector contain hex colors?
assert_any_are_identical Are the inputs identical
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_negative_infinity Are the inputs (in)finite?
assert_any_are_non_negative Is the input in range?
assert_any_are_non_positive Is the input in range?
assert_any_are_not_missing_nor_empty_characters Is the input of type character?
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_odd Is the input divisible by a number?
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_positive_infinity Are the inputs (in)finite?
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_same_length Are the inputs the same length
assert_any_are_single_characters Is the input a single character?
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_car_licenses 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_whole_numbers Is the input a whole number?
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_elements Is the input empty/scalar?
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_32_bit What OS is running?
assert_is_64_bit What OS is running?
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_architect Are you running R?
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_bsd What OS is running?
assert_is_bzfile_connection Is the input a connection?
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_fifo_connection Is the input a connection?
assert_is_file_connection Is the input a connection?
assert_is_function Is the input a function?
assert_is_gzfile_connection Is the input a connection?
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_inherited_from Does the object inherit from some class?
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_of_dimension Is the input empty/scalar?
assert_is_of_length Is the input empty/scalar?
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_pipe_connection Is the input a connection?
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_readable_connection Is the input a connection?
assert_is_recursive Is the input atomic/recursive/vector?
assert_is_relistable Is the input raw?
assert_is_revo_r Are you running R?
assert_is_rstudio Are you running R?
assert_is_r_alpha Are you running R?
assert_is_r_beta Are you running R?
assert_is_r_devel Are you running R?
assert_is_r_patched Are you running R?
assert_is_r_release_candidate Are you running R?
assert_is_r_stable Are you running R?
assert_is_S4 Is the input an S4 object?
assert_is_s4 Is the input an S4 object?
assert_is_scalar Is the input empty/scalar?
assert_is_set_equal Set comparisons
assert_is_slave_r Are you running R?
assert_is_socket_connection Is the input a connection?
assert_is_solaris What OS is running?
assert_is_stderr Is the input a connection?
assert_is_stdin Is the input a connection?
assert_is_stdout Is the input a connection?
assert_is_stepfun Is the input a function?
assert_is_subset Set comparisons
assert_is_superset Set comparisons
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_terminal_connection Is the input a connection?
assert_is_text_connection Is the input a connection?
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_unz_connection Is the input a connection?
assert_is_url_connection Is the input a connection?
assert_is_vector Is the input atomic/recursive/vector?
assert_is_windows What OS is running?
assert_is_writable_connection Is the input a connection?
assert_is_xzfile_connection Is the input a connection?
assert_r_can_build_translations Can R find tools for building translations?
assert_r_can_compile_code Can R find tools for compiling code?
assert_r_has_aqua_capability Does R have a capability?
assert_r_has_cairo_capability Does R have a capability?
assert_r_has_cledit_capability Does R have a capability?
assert_r_has_fifo_capability Does R have a capability?
assert_r_has_http_ftp_capability Does R have a capability?
assert_r_has_iconv_capability Does R have a capability?
assert_r_has_icu_capability Does R have a capability?
assert_r_has_jpeg_capability Does R have a capability?
assert_r_has_libcurl_capability Does R have a capability?
assert_r_has_libxml_capability Does R have a capability?
assert_r_has_long_double_capability Does R have a capability?
assert_r_has_nls_capability Does R have a capability?
assert_r_has_png_capability Does R have a capability?
assert_r_has_profmem_capability Does R have a capability?
assert_r_has_sockets_capability Does R have a capability?
assert_r_has_tcltk_capability Does R have a capability?
assert_r_has_tiff_capability Does R have a capability?
assert_r_has_x11_capability Does R have a capability?

-- 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
DIM Get the dimensions of an object
dont_stop Run code without stopping

-- 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_elements Is the input empty/scalar?
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_32_bit What OS is running?
is_64_bit What OS is running?
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_architect Are you running R?
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_bsd What OS is running?
is_bzfile_connection Is the input a connection?
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_divisible_by Is the input divisible by a number?
is_email_address Does the character vector contain email addresses?
is_empty Is the input empty/scalar?
is_empty_character Is the input of type character?
is_empty_file Is a file empty?
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_even Is the input divisible by a number?
is_executable_file Is the file accessible?
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_fifo_connection Is the input a connection?
is_file_connection Is the input a connection?
is_finite Are the inputs (in)finite?
is_function Is the input a function?
is_gzfile_connection Is the input a connection?
is_hex_color Does the character vector contain hex colors?
is_hex_colour Does the character vector contain hex colors?
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_inherited_from Does the object inherit from some class?
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_negative_infinity Are the inputs (in)finite?
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_not_null Is the input (not) null?
is_null Is the input (not) null?
is_numeric Is the input numeric?
is_numeric_string Is the input of type character?
is_odd Is the input divisible by a number?
is_of_dimension Is the input empty/scalar?
is_of_length Is the input empty/scalar?
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_pipe_connection Is the input a connection?
is_positive Is the input in range?
is_positive_infinity Are the inputs (in)finite?
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_connection Is the input a connection?
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_revo_r Are you running R?
is_rstudio Are you running R?
is_r_alpha Are you running R?
is_r_beta Are you running R?
is_r_devel Are you running R?
is_r_patched Are you running R?
is_r_release_candidate Are you running R?
is_r_stable Are you running R?
is_S4 Is the input an S4 object?
is_s4 Is the input an S4 object?
is_scalar Is the input empty/scalar?
is_set_equal Set comparisons
is_single_character Is the input a single character?
is_slave_r Are you running R?
is_socket_connection Is the input a connection?
is_solaris What OS is running?
is_stderr Is the input a connection?
is_stdin Is the input a connection?
is_stdout Is the input a connection?
is_stepfun Is the input a function?
is_subset Set comparisons
is_superset Set comparisons
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_terminal_connection Is the input a connection?
is_text_connection Is the input a connection?
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_car_license 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_unz_connection Is the input a connection?
is_url_connection Is the input a connection?
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_connection Is the input a connection?
is_writable_file Is the file accessible?
is_xxx_for_decimal_point What does the current locale specify for the decimal point?
is_xzfile_connection Is the input a connection?

-- L --

locale_categories Allowed locale categories.

-- M --

matches_regex Does the input match the regular expression?
merge.list Merge two lists
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.
n_elements Get the number of elements

-- P --

parenthesise Wrap a string in brackets
parenthesize Wrap a string in brackets
print_and_capture Print a variable and capture the output

-- R --

recycle Recycle arguments
r_can_build_translations Can R find tools for building translations?
r_can_compile_code Can R find tools for compiling code?
r_has_aqua_capability Does R have a capability?
r_has_cairo_capability Does R have a capability?
r_has_capability Does R have a capability?
r_has_cledit_capability Does R have a capability?
r_has_fifo_capability Does R have a capability?
r_has_http_ftp_capability Does R have a capability?
r_has_iconv_capability Does R have a capability?
r_has_icu_capability Does R have a capability?
r_has_jpeg_capability Does R have a capability?
r_has_libcurl_capability Does R have a capability?
r_has_libxml_capability Does R have a capability?
r_has_long_double_capability Does R have a capability?
r_has_nls_capability Does R have a capability?
r_has_png_capability Does R have a capability?
r_has_profmem_capability Does R have a capability?
r_has_sockets_capability Does R have a capability?
r_has_tcltk_capability Does R have a capability?
r_has_tiff_capability Does R have a capability?
r_has_x11_capability Does R have a capability?

-- S --

set_cause Set a cause and return the input
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

-- T --

truncate Truncate a string

-- U --

use_first Only use the first element of a vector.

-- W --

warn_about_file.access_under_windows Warn about file.access under Windows