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

The libPaths argument to slurm_apply reverses the order of libraries used #53

Closed
Patrick330 opened this issue Apr 30, 2020 · 3 comments
Closed

Comments

@Patrick330
Copy link

Patrick330 commented Apr 30, 2020

When you pass multiple libraries to libPaths, the slurm_run.R file generated adds each one to the beginning of .libPaths() in the order they were passed. This results in the libraries being reversed in order in .libPaths(), which means that any packages are loaded from the last library in which they are available. This causes issues for users who, for example, operate on a shared cluster where there is both a centrally-managed package library and a personal package library and would prefer to load packages from one library rather than another.

@qdread
Copy link
Contributor

qdread commented Apr 30, 2020

Hi Patrick,
Thanks a lot for bringing this to my attention! I've reversed the order of the arguments in the relevant lines of the template, so that multiple paths are added to .libPaths() at the end rather than the beginning. See this commit. Please confirm that this resolves your issue.
best,
Quentin

@Patrick330
Copy link
Author

Hi Quentin,
Yes, I believe that will fix the issue. Thank you!

Patrick

@qdread
Copy link
Contributor

qdread commented Apr 30, 2020

Excellent, thanks again for your help. Closing the issue.

@qdread qdread closed this as completed Apr 30, 2020
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