Learn R Programming

⚠️There's a newer version (0.0-9) of this package.Take me there.

assertive.base (version 0.0-2)

A Lightweight Core of the 'assertive' Package

Description

A minimal set of predicates and assertions used by the assertive package. This is mainly for use by other package developers who want to include run-time testing features in their own packages. End-users will usually want to use assertive directly.

Copy Link

Version

Install

install.packages('assertive.base')

Monthly Downloads

200

Version

0.0-2

License

GPL (>= 3)

Maintainer

Richard Cotton

Last Published

October 6th, 2015

Functions in assertive.base (0.0-2)

merge.list

Merge two lists
assert_engine

Throws an error if a condition isn't met
bapply

Wrapper to vapply that returns booleans
parenthesize

Wrap a string in brackets
merge_dots_with_list

Merge ellipsis args with a list.
false

FALSE, with a cause of failure.
set_cause

Set a cause and return the input
dont_stop

Run code without stopping
get_name_in_parent

Get the name of a variable in the parent frame
use_first

Only use the first element of a vector
print_and_capture

Print a variable and capture the output
coerce_to

Coerce variable to a different class
print.scalar_with_cause

Print methods for objects with a cause attribute
assertionError

Condition classes
type_description

Describe the type of object
are_identical

Are the inputs identical?
strip_attributes

Strip all attributes from a variable
is2

Alternative version of is
call_and_name

Call a function, and give the result names.
truncate

Truncate a string
Truth

Is the input TRUE/FALSE/NA?
cause

Get or set the "cause" attribute
na

NA, with a cause of failure.