Skip to contents

This function inspects the Python environment which has been activated by the reticulate package and prints the versions of all slendr Python dependencies to the console.

Usage

check_env(verbose = TRUE)

Arguments

verbose

Should a log message be printed? If FALSE, only a logical value is returned (invisibly).

Value

Either TRUE (slendr Python environment is present) or FALSE

(slendr Python environment is not present).

Examples

check_dependencies(python = TRUE, quit = TRUE) # dependencies must be present

init_env()
#> The interface to all required Python modules has been activated.
check_env()
#> Summary of the currently active Python environment:
#> 
#> Python binary: /Users/mp/Library/r-miniconda-arm64/envs/Python-3.12_msprime-1.3.3_tskit-0.5.8_pyslim-1.0.4_tspop-0.0.2/bin/python 
#> Python version: 3.12.7 | packaged by conda-forge | (main, Oct  4 2024, 15:57:01) [Clang 17.0.6 ] 
#> 
#> slendr requirements:
#>  - tskit: version  ✓ 
#>  - msprime: version  ✓ 
#>  - pyslim: version 1.0.4 ✓ 
#>  - tspop: present ✓