get_python_binary_path: Get the path to the 'python' binary

View source: R/get_python_binary_path.R

get_python_binary_pathR Documentation

Get the path to the python binary

Description

Get the path to the python binary

Usage

get_python_binary_path(
  ormr_folder_name = get_default_ormr_folder_name(),
  verbose = FALSE
)

Arguments

ormr_folder_name

can be either python3 or the name of the folder where ormr installs all Python environments and packages.

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

the path to the actve python binary

Author(s)

Richèl J.C. Bilderbeek

Examples

# local Python version
# just returns 'python3'
get_python_binary_path(ormr_folder_name = "python3")

# Conda Python version
if (is_conda_installed()) {
  get_python_binary_path()
}

richelbilderbeek/ormr documentation built on May 23, 2022, 1:15 p.m.