I am analysing a TIFF file in R. The TIFF only has one colour/channel, however it is from a movie that has ~1000 frames and so is very large. I have tried using the following command with EBImage to load the image data as a Matrix into R:

```
img <- readImage(file, as.is = TRUE)

```

However the computer's RAM is totally overloaded by the huge file, and I get the following error message:

```
Error: cannot allocate vector of size 22.4 Gb
In addition: Warning messages:
1: In readTIFF(x, all = all, ...) :
  TIFFReadDirectory: Unknown field with tag 50838 (0xc696) encountered
2: In readTIFF(x, all = all, ...) :
  TIFFReadDirectory: Unknown field with tag 50839 (0xc697) encountered
3: In array(unlist(arg.list, use.names = FALSE), dim = c(arg.dim[-along,  :
  Reached total allocation of 65170Mb: see help(memory.size)
4: In array(unlist(arg.list, use.names = FALSE), dim = c(arg.dim[-along,  :
  Reached total allocation of 65170Mb: see help(memory.size)
5: In array(unlist(arg.list, use.names = FALSE), dim = c(arg.dim[-along,  :
  Reached total allocation of 65170Mb: see help(memory.size)
6: In array(unlist(arg.list, use.names = FALSE), dim = c(arg.dim[-along,  :
  Reached total allocation of 65170Mb: see help(memory.size)

```

My proposed solution is to create a loop that will open each frame individually, perform and store my analysis, then move onto the next image. The TIFF package called by EBImage offers an option to open only the first frame (`all = FALSE`), but not to open a frame of one's choice. Is there a way I can open each frame individually?