getFallbackREnv: Get the path to the fallback R environment

View source: R/getFallbackREnv.R

getFallbackREnvR Documentation

Get the path to the fallback R environment

Description

Get the path to the conda environment containing an internal R installation. This is used as a last resort fallback for reticulate when there are shared library version conflicts with the current R installation.

Usage

getFallbackREnv()

Details

If the environment does not yet exist and useSystemDir is FALSE, it is created on the fly. Otherwise, if useSystemDir is TRUE, an error is thrown; this is because the fallback environment should have been created by installConda, unless noFallbackR is set to TRUE.

If the BASILISK_EXTERNAL_FALLBACK_R environment variable is set to some location, this will be returned instead. The fallback environment should have already been created at this location.

Value

String containing the path to the conda environment with a fallback version of R installed.

Author(s)

Aaron Lun

Examples

# We can't actually run getFallbackEnv() here, as it 
# either relies on basilisk already being installed or
# it has a hard-coded path to the basilisk system dir.
print("dummy test to pass BiocCheck")


LTLA/basilisk.utils documentation built on Feb. 15, 2025, 2:11 a.m.