flush: Updating a big.matrix filebacking.

Description Usage Arguments Details Value Examples

Description

For a file-backed big.matrix object, flush() forces any modified information to be written to the file-backing.

Usage

1
flush(con)

Arguments

con

a filebacked big.matrix.

Details

This function flushes any modified data (in RAM) of a file-backed big.matrix to disk. This may be useful for improving performance in cases where allowing the operating system to decide on flushing creates a bottleneck (likely near the threshold of available RAM).

Value

TRUE or FALSE (invisible), indicating whether or not the flush was successful.

Examples

1
2
3
4
x <- big.matrix(nrow=3, ncol=3, backingfile='flushtest.bin',
  descriptorfile='flushtest.desc', type='integer')
x[1,1] <- 0
flush(x)

bigmemory documentation built on May 2, 2019, 5 p.m.