privefl/bigstatsr

Bug in big_tcrossprodSelf: backingfile option missing

Closed this issue · 5 comments

In the big_tcrossprodSelf, the backingfile option is missing. This then results in the following error:
"Error: Not enough disk space to create '/tmp/Rtmp8o1xcA/file209cd5efd38c5.bk'.".

This is because in https://github.com/privefl/bigstatsr/blob/master/R/tcrossprodSelf.R, at this line:
K <- FBM(n, n, init = 0)
you try to create the backingfile at the default location , which then points to some place where I do not have permissions/enough space and there is no way to change this.

This function needs to let the user supply their own temporary directory location like for most other similar functions, so that this won't happen.

Yes, that's mentioned at #73.

This is not really hard to implement, so I was waiting for someone else to do it.

In the latest GitHub version, I have just added a global option FBM.dir, which can be used to change the default directory used to create FBMs, which you could use as a workaround for now.

Does this workaround work you?

Yes thanks, you may close this topic!

You may too :')