Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in big_tcrossprodSelf: backingfile option missing #149

Closed
mkelcb opened this issue Mar 12, 2022 · 5 comments
Closed

Bug in big_tcrossprodSelf: backingfile option missing #149

mkelcb opened this issue Mar 12, 2022 · 5 comments

Comments

@mkelcb
Copy link

mkelcb commented Mar 12, 2022

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.

@privefl
Copy link
Owner

privefl commented Mar 12, 2022

Yes, that's mentioned at #73.

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

@privefl
Copy link
Owner

privefl commented Mar 14, 2022

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.

@privefl
Copy link
Owner

privefl commented Mar 25, 2022

Does this workaround work you?

@mkelcb
Copy link
Author

mkelcb commented Mar 25, 2022

Yes thanks, you may close this topic!

@privefl
Copy link
Owner

privefl commented Mar 25, 2022

You may too :')

@privefl privefl closed this as completed Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants