-
Notifications
You must be signed in to change notification settings - Fork 37
add R module set R package location docs #877
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
847bb9e
add R module set R libs ilocation docs
hajgato 3d33518
fix typos
hajgato 2a80b22
fix typos
hajgato 8e9b716
fix typos
hajgato a7ae732
Apply suggestions from code review
hajgato fa797e9
add section title
hajgato ae9db83
rename rlibs.md to r-packages.md
hajgato 1207481
final minor tweaks to docs on R package installation location + fix f…
boegel 5d4e898
Update mkdocs/docs/HPC/r-packages.md
hajgato b0c3aa3
polishing the text
hajgato 6bed132
polishing the text
hajgato 873cdca
Apply suggestions from code review
hajgato File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # R libraries | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Please keep in mind, that this is not a general manual | ||
| abut installing `R` libraries, but only system specific information about self | ||
| installed R libraries at {{ hpcinfra }}. | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Our infrastructure contains different CPU architectures, that are | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| not necessarily compatible with each other. Additionally, we have | ||
| multiple versions of `R` installed with different versions of toolchains, and by default, | ||
| self installed libraries are installed in separate directories based only | ||
| on `R` major and minor versions. | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| In this way, you might use self installed `R` libraries on incompatible architectures and/or | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| compiled with incompatible toolchains, which might lead to hangs or other types of errors. | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| When you load a centrally installed `R` module we make sure that self installed libraries | ||
| will be installed to an operational system, architecture, toolchain, and `R` version | ||
| dependent directory. The location of this directory by default is | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| (by setting `R_LIBS_USER` environmental variable to) | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| `$VSC_DATA/local_R_LIBS/$VSC_OS_LOCAL/$VSC_ARCH_LOCAL/<R version>-<toolchain>`. | ||
|
|
||
| If you would like to have another location (for example you are using a central location | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| in your VO), you should set the environmental variable `R_LIBS_BASEDIR` to the desired location | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| *before* you load any centrally installed `R` module. In this case, the location of the | ||
| directory for self installed `R` libraries will be | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| `$R_LIBS_BASEDIR/local_R_LIBS/$VSC_OS_LOCAL/$VSC_ARCH_LOCAL/<R version>-<toolchain>`. | ||
| If this directory is not writable, you can still be able to use already installed | ||
| `R` libraries from that location, but you will not be able to install `R` libraries | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| yourself. | ||
|
|
||
| You can always check the default location(s) of `R` libraries by issuing `.libPaths()` command | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| in `R`. This command will show the library locations ordered by their priorities. | ||
|
|
||
| Please be aware that if you have installed an `R` libraries yourself in the past, you might have to | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| reinstall those if you want to use them: | ||
| - on a different cluster | ||
| - with a different version of `R` | ||
| - with an `R` compiled with a different version of toolchain | ||
| - if the operational system is changed/updated. | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.