-
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 8 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,47 @@ | ||
| # R packages | ||
|
|
||
| !!! note | ||
| Please keep in mind that this is not general documentation | ||
| about installing `R` packages, but specific information about | ||
| self-installed R packages at the {{ hpcinfra }}. | ||
|
|
||
| The {{ hpcinfra }} contains different generations of CPUs, with different microarchitectures, that are | ||
| not necessarily compatible with each other. Additionally, we have | ||
| multiple versions of `R` installed with different versions of toolchains, and by default, | ||
| self-installed packages are installed in separate directories based only | ||
| on `R` major and minor versions (only using `x.y` for R version `x.y.z`). | ||
|
|
||
| In this way, you might use self-installed `R` packages on incompatible CPU microarchitectures and/or | ||
| compiled with incompatible toolchains, or for a different major version of the operating system, | ||
| which might lead to hangs or other types of errors. | ||
|
|
||
| Since end of February 2025, we make sure that `R` packages that you install yourself will be installed | ||
| in a directory that is specific to the operating system version, CPU microarchitecture, toolchain, | ||
| and `R` version that is being used. The location of this directory by default is | ||
| (by setting `$R_LIBS_USER` environment variable to) | ||
| `$VSC_DATA/local_R_LIBS/$VSC_OS_LOCAL/$VSC_ARCH_LOCAL/<R version>-<toolchain>`. | ||
|
|
||
| ### Controlling the location for self-installed R packages | ||
|
|
||
| If you would like to have another location (for example you are using a central location | ||
| in your Virtual Organisation), you should set the environment variable `$R_LIBS_BASEDIR` to the desired location | ||
| *before* you load any centrally installed `R` module. In this case, the location of the | ||
| directory for self-installed `R` packages will be | ||
| `$R_LIBS_BASEDIR/local_R_LIBS/$VSC_OS_LOCAL/$VSC_ARCH_LOCAL/<R version>-<toolchain>`. | ||
| If this directory is not writable, you will still be able to use already installed | ||
| `R` packages from that location, but you will not be able to install `R` packages | ||
| yourself. | ||
|
|
||
| You can always check the default location(s) of `R` packages by issuing `.libPaths()` command | ||
| in `R`. This command will show the package locations, ordered by their priorities. | ||
|
|
||
| ### Missing R packages intalled before | ||
|
|
||
| Please be aware that if you have installed an `R` packages yourself in the past (before end of February 2025), | ||
| you might have to reinstall those if you want to use them: | ||
|
|
||
| - on a different cluster | ||
boegel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - with a different version of `R` | ||
| - with an `R` compiled with a different version of toolchain | ||
| - if the operational system is changed/updated. | ||
hajgato marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
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.