kaneplusplus / bigmemory

126 stars 24 forks source link

Windows - How to free memory used by big.matrix objects of crashed R sessions #102

Closed RdeBiotec closed 4 years ago

RdeBiotec commented 4 years ago

Hi!

So I was fortunate enough to have some RStudio crashes while testing bigmemory code in Windows. I wasn't using filepaths in some cases, so I don't know where the temporary big.matrixes were stored.

In Linux it would be in /dev/shm, but... where should I search in Windows? Using the File Explorer to find these was not very helpful.

Hopefully someone can lend me a hand. Thanks!

kaneplusplus commented 4 years ago

Type the following in an R session.

tempdir()

It should give you the directory. Note that I think a new temp directory is defined per R session so you may need to look in the parent directory.

RdeBiotec commented 4 years ago

Thanks a lot!!! Worked like a charm 🥇