R/updateProgress.R

Defines functions updateProgress

#' @export
updateProgress <- function(progress=NULL, detail=NULL, n=NULL, shiny=FALSE, print=TRUE){
  if(isTRUE(shiny)){

    # Increment the progress bar, and update the detail text.
    progress$inc(1/n, detail = detail)

  } else if(isTRUE(print)){
    print(detail)
  }
}
ludgergoeminne/MSqRob documentation built on Jan. 11, 2023, 1:32 p.m.