A thin wrapper around tf$Assert()
that automatically constructs an
informative error message (passed on to data
argument), which includes the
expression passed to condition
, the values of the symbols found in the
expression, as well as the full R call stack at the time the tf$Assert()
node is created.
tf_assert( condition, ..., expr = substitute(condition), summarize = NULL, name = NULL )
condition | A boolean tensor |
---|---|
... | Additional elements passed on to |
expr | A language object, provided in case |
summarize | Print this many entries of each tensor. |
name | A name for this operation (optional). |