get_installed_python_packages: Get the installed Python packages and their versions

View source: R/get_installed_python_packages.R

get_installed_python_packagesR Documentation

Get the installed Python packages and their versions

Description

Get the installed Python packages and their versions

Usage

get_installed_python_packages(
  ormr_folder_name = get_default_ormr_folder_name(),
  python_version = get_default_python_version(),
  verbose = FALSE
)

Arguments

ormr_folder_name

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

python_version

the version of Python used. Use get_default_python_version to get the default Python version.

verbose

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

Value

a tibble with two rows:

  • package: the package name

  • version: the package version

  • requirement: the packages requirements

  • channel: the package's channel

Author(s)

Richèl J.C. Bilderbeek

Examples

# Local python3
get_installed_python_packages(ormr_folder_name = "python3")

# Conda environment
if (is_conda_installed()) {
  get_installed_python_packages()
}

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