FileProgressBar

0th

Percentile

A progress bar that sets the size of a file accordingly

Package: R.utils Class FileProgressBar Object ~~| ~~+--ProgressBar ~~~~~~~| ~~~~~~~+--FileProgressBar Directly known subclasses: public static class FileProgressBar extends ProgressBar

Keywords
classes
Usage
FileProgressBar(pathname=NULL, ...)
Arguments
pathname
The pathname of the output file.
...
Other arguments accepted by the ProgressBar constructor.
Details

A progress bar that sets the size of a file accordingly. This class useful to check the progress of a batch job by just querying the size of a file, for instance, via ftp.

Fields and Methods

Methods: rll{ 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, clone, detach, equals, extend, finalize, getEnvironment, getFields, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save

Aliases
  • FileProgressBar
Examples
# 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)
}
Documentation reproduced from package R.utils, version 0.7.9, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.