catch: Turn on error catching

Description Usage Value Author(s) Examples

Description

Sometimes iterations diverge, leading to errors. If error catching is turned on, the iteration will return a warning and the last non-error value.

Usage

1

Value

used for side effects

Author(s)

Simon Barthelme

Examples

1
2
3
4
5
6
7
8
f <- function(x) if (x > 0) { x-2*x} else { stop('aargh') }
## Not run: 
g <- fp(f)
g(3)

## End(Not run)
g <- fp(f)+catch()
g(3)

dahtah/fixedpoints documentation built on May 14, 2019, 3:25 p.m.