Skip to contents

Returns information about the current Python configuration for the CohortContrast Viewer.

Usage

getPythonInfo()

Value

A list with Python configuration details

Examples

# \donttest{
if (requireNamespace("reticulate", quietly = TRUE) &&
    (nzchar(Sys.which("python3")) || nzchar(Sys.which("python")))) {
  configurePython(createVenv = FALSE)
  getPythonInfo()
}
#> Configuring Python environment for CohortContrast Viewer...
#> Using system Python: /Users/markushaug/.virtualenvs/r-cohortcontrast-viewer/bin/python3
#> Python configuration complete.
#> Python version: 3.13
#> Python path: /Users/markushaug/.virtualenvs/r-cohortcontrast-viewer/bin/python
#> $python_version
#> [1] ‘3.13’
#> 
#> $pythonPath
#> [1] "/Users/markushaug/.virtualenvs/r-cohortcontrast-viewer/bin/python"
#> 
#> $virtualenv
#> NULL
#> 
#> $configured
#> [1] TRUE
#> 
#> $numpy_available
#> [1] TRUE
#> 
#> $pandas_available
#> [1] TRUE
#> 
#> $dash_available
#> [1] TRUE
#> 
# }