Learn R Programming

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

assertive.base (version 0.0-3)

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

236

Version

0.0-3

License

GPL (>= 3)

Maintainer

Richard Cotton

Last Published

October 8th, 2015

Functions in assertive.base (0.0-3)

false

FALSE, with a cause of failure.
get_name_in_parent

Get the name of a variable in the parent frame
is2

Alternative version of is
strip_attributes

Strip all attributes from a variable
assert_engine

Throws an error if a condition isn't met
na

NA, with a cause of failure.
bapply

Wrapper to vapply that returns booleans
merge_dots_with_list

Merge ellipsis args with a list.
type_description

Describe the type of object
print.scalar_with_cause

Print methods for objects with a cause attribute
parenthesize

Wrap a string in brackets
dont_stop

Run code without stopping
call_and_name

Call a function, and give the result names.
Truth

Is the input TRUE/FALSE/NA?
truncate

Truncate a string
set_cause

Set a cause and return the input
coerce_to

Coerce variable to a different class
are_identical

Are the inputs identical?
merge.list

Merge two lists
cause

Get or set the "cause" attribute
assertionError

Condition classes
use_first

Only use the first element of a vector
print_and_capture

Print a variable and capture the output