Skip to content

Instantly share code, notes, and snippets.

@lcolladotor
Created June 5, 2014 20:34
Show Gist options
  • Save lcolladotor/2052a9dfc6f3e4726cfc to your computer and use it in GitHub Desktop.
Save lcolladotor/2052a9dfc6f3e4726cfc to your computer and use it in GitHub Desktop.
Cluster R profile
## Fix libpath for R 3.1.x
if(commandArgs()[1] == "/jhpce/shared/community/compiler/gcc/4.4.7/R/3.1.x/lib64/R/bin/exec/R") {
dir.create("~/R/x86_64-unknown-linux-gnu-library/3.1.x", showWarnings=FALSE, recursive=TRUE)
message("Using the following user library: ~/R/x86_64-unknown-linux-gnu-library/3.1.x")
.libPaths(c("~/R/x86_64-unknown-linux-gnu-library/3.1.x", "/jhpce/shared/community/compiler/gcc/4.4.7/R/3.1.x/lib64/R/site-library", "/jhpce/shared/community/compiler/gcc/4.4.7/R/3.1.x/lib64/R/library"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment