ff (version 4.0.12)

is.readonly: Get readonly status

Description

Get readonly status of an ff object

Usage

is.readonly(x, ...)
# S3 method for ff
is.readonly(x, ...)

Value

logical scalar

Arguments

x

x

...

...

Author

Jens Oehlschlägel

Details

ff objects can be created/opened with readonly=TRUE. After each opening of the ff file readonly status is stored in the physical attributes and serves as the default for the next opening. Thus querying a closed ff object gives the last readonly status.

See Also

open.ff, physical

Examples

Run this code
  x <- ff(1:12)
  is.readonly(x)
  close(x)
  open(x, readonly=TRUE)
  is.readonly(x)
  close(x)
  is.readonly(x)
  rm(x)

Run the code above in your browser using DataLab