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.

check_env(quiet = FALSE)

Arguments

quiet

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) # make sure dependencies are present

check_env()
#> Summary of the currently active Python environment:
#> 
#> Python binary: /Users/mp/Library/r-miniconda-arm64/envs/msprime-1.2.0_tskit-0.5.2_pyslim-1.0/bin/python 
#> Python version: 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 06:05:16)  [Clang 12.0.1 ] 
#> 
#> slendr requirements:
#>  - tskit: version 0.5.2 ✓ 
#>  - msprime: version 1.2.0 ✓ 
#>  - pyslim: version 1.0 ✓