Evaluate an expression inside the MOFAFlex Python environment
with_mofaflex_env.RdA thin wrapper around basilisk::basiliskRun() that evaluates expr
inside the managed Python environment returned by mofaflex_basilisk_env().
Use this wrapper to ensure that all Python imports resolve to the correct
environment.
Examples
if (FALSE) { # \dontrun{
with_mofaflex_env({
np <- reticulate::import("numpy", convert = FALSE)
np$array(1:5)
})
} # }