dot_every: Print a dot during repeated executions of a function

Description Usage Arguments Value References Examples

Description

Print a dot during repeated executions of a function

Usage

1
dot_every(n = 10, f)

Arguments

n

Number of iterations between dots

f

The function to be called

Value

A version of function f that prints dots.

References

This function is borrowed from Hadley Wickham, Advanced R (Chapman and Hall, 2014), section 12.1.

Examples

1
2
f <- dot_every(5, sqrt)
r <- lapply(1:100, f)

lmullen/mullenMisc documentation built on May 21, 2019, 7:35 a.m.