powered by
Creates an animated spinner
spinner(format = "|/-\\", refresh = 200)# S3 method for spinner render(object, ...)
# S3 method for spinner render(object, ...)
character vector containing the format of the animation. See 'details' for more information.
refresh rate in milliseconds of the animation.
animated spinner.
further arguments passed to or from other methods.
The format of the spinner simply consists of the characters in order which the spinner cycles through.
# NOT RUN { sp = spinner("|/-\\") n_operations = 100 for(i in 1:n_operations) { cat("\r", render(sp),sep="") Sys.sleep(0.01) } # }
Run the code above in your browser using DataLab