Learn R Programming

mapplots (version 1.5.2)

progressMsg: Progress message

Description

progress message in the R console.

Usage

setProgressMsg(min = 0, max = 1)
progressMsg(pm, value, round = 0)

Value

a list

Arguments

min, max

(finite) numeric values for the extremes of the progress message. Must have min < max

pm

list created by setProgressMsg

value

value for the progress message.

round

integer indicating the number of decimal places for the percentage completed. Defaults to 0.

Author

Hans Gerritsen

Details

setProgressMsg sets up a list with variables used and updated by progressMsg

See Also

Examples

Run this code
if (FALSE) {
  pm <- setProgressMsg(0,500)
  for(i in 1:500) {
    pm<- progressMsg(pm,i)
    Sys.sleep(0.01)
  
  }
  rm(pm)
  }

Run the code above in your browser using DataLab