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.

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 April 13, 2024, 1:14 a.m.