Checks if Python is already available via reticulate, otherwise tries to use or create a virtual environment. Required for reading and writing MATLAB .mat files.
Examples
if (FALSE) { # \dontrun{
# Initialize with default venv path (./venv)
success <- init_python_env()
# Initialize with custom venv path
success <- init_python_env("/path/to/my/venv")
if (success) {
message("Python ready for MAT file operations")
}
} # }