loop: Output a message while inside a loop

Description Usage Arguments Author(s) See Also Examples

Description

(NOTE: txtProgressBar and setTxtProgressBar are better.) Output a message while inside a for loop to update the user on progress. This function is useful in tracking progress when the number of iterations is large or the procedures in each iteration take a long time.

Usage

1
loop(i, n = NULL, every = 1, extra=NULL)

Arguments

i

The index value used in the loop.

n

The last entry in the loop.

every

The number of loops between messages.

extra

Additional information to print.

Author(s)

David M Diez

See Also

myPDF

Examples

1
2
3
for(i in 1:160){
	loop(i, 160, 20, paste("iter", i))
}

JECheadle/RSOC317L documentation built on May 15, 2019, 4:02 a.m.