Avoid using user-HOME when installing RPackage #3911
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.
(created using
eb --new-pr
)When installing
R-bundle-CRAN-2023.12-foss-2023a.eb
the extensionR.cache
attempts to write to the user home (~/.cache/R
folder)This is due to rappdirs using those defaults for R_USER_DATA_DIR, R_USER_CACHE_DIR and R_USER_CONFIG_DIR env vars
Prior rappdirs versions used the XDG variables like
$XDG_CACHE_HOME
. Those are still used as fallbacks but setting all 6 avoids interference with user environmentsI also did a small refactoring:
make_R_install_option
had a manualstr.join()
implementationhandle_installation_errors
Note that we should also remove the unused
async_cmd_check
, see also easybuilders/easybuild-docs#343