Object
~~|
~~+--
ProgressBar
~~~~~~~|
~~~~~~~+--
FileProgressBar
Directly known subclasses:
public static class FileProgressBar
extends ProgressBarFileProgressBar(pathname=NULL, ...)
ProgressBar
constructor.remove
Removes the progress file for a file progress bar.
update
Updates file progress bar.
}
Methods inherited from ProgressBar:
as.character, getBarString, increase, isDone, reset, setMaxValue, setProgress, setStepLength, setTicks, setValue, update
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, registerFinalizer, save# Creates a progress bar (of length 100) that displays it self as a file.
pb <- FileProgressBar("~/progress.simulation")
reset(pb)
while (!isDone(pb)) {
x <- rnorm(3e4)
increase(pb)
Sys.sleep(0.01)
}
Run the code above in your browser using DataLab