Learn R Programming

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

assertive.base (version 0.0-1)

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-1

License

GPL (>= 3)

Maintainer

Richard Cotton

Last Published

July 14th, 2015

Functions in assertive.base (0.0-1)

strip_attributes

Strip all attributes from a variable
dont_stop

Run code without stopping
Truth

Is the input TRUE/FALSE/NA?
bapply

Wrapper to vapply that returns booleans
is2

Alternative version of is
merge_dots_with_list

Merge ellipsis args with a list.
coerce_to

Coerce variable to a different class
parenthesize

Wrap a string in brackets
n_elements

Get the number of elements
set_cause

Set a cause and return the input
na

NA, with a cause of failure.
type_description

Describe the type of object
merge.list

Merge two lists
false

FALSE, with a cause of failure.
print_and_capture

Print a variable and capture the output
call_and_name

Call a function, and give the result names.
assert_engine

Throws an error if a condition isn't met
use_first

Only use the first element of a vector
truncate

Truncate a string
cause

Get or set the "cause" attribute
DIM

Get the dimensions of an object
get_name_in_parent

Get the name of a variable in the parent frame
print.scalar_with_cause

Print methods for objects with a cause attribute