Skip to contents

Fix OpenMP linking issue

Usage

fix_omp_conflict(env_name = NA)

Arguments

env_name

environment name, see env_path.

Value

Whether the symbolic link is created.

Details

On MacOS, R framework and conda each ship their own libomp.dylib. When both are loaded in the same process, the run-time raises error because different copies of OpenMP are initialized. To solve this issue, a symbolic link to R's framework copy ensures dynamical loading resolves both to the same canonical path and initializes the run-time exactly once.

Examples


if (FALSE) { # \dontrun{

fix_omp_conflict()

} # }