rhfRepeatUntilOk: Repeats Target Function until Result succesful

Description Usage Arguments Value Examples

Description

This function repeats the target function until the execution of the target function is successfull.

Usage

1
2
rhfRepeatUntilOk(expr, silent = TRUE, maxIter = 1000,
  quotedExpr = substitute(expr), envir = parent.frame())

Arguments

expr

target function expression

silent

logical: should the report of error messages be suppressed?

maxIter

maximum iterations of target function

quotedExpr

substitute(expr) - returns the parse tree for the (unevaluated) expression

envir

environment - evaluate an R expression in a specified environment

Value

result target function

Examples

1
2
3
4
## Not run: 
rhfRepeatUntilOk(data <- targetFunction())

## End(Not run)

jburkhardt/RHelperFunctions documentation built on May 29, 2019, 2:56 p.m.