Get readonly status of an ff object

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

Arguments

x

x

...

...

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.

Value

logical scalar

Author

Jens Oehlschlägel

See also

Examples

  x <- ff(1:12)
  is.readonly(x)
#> [1] FALSE
  close(x)
#> [1] TRUE
  open(x, readonly=TRUE)
#> [1] TRUE
  is.readonly(x)
#> [1] TRUE
  close(x)
#> [1] TRUE
  is.readonly(x)
#> [1] TRUE
  rm(x)