list_packages {condathis} | R Documentation |
List Packages Installed in a Conda Environment
Description
This function retrieves a list of all packages installed in the specified Conda environment. The result is returned as a tibble with detailed information about each package, including its name, version, and source details.
Usage
list_packages(env_name = "condathis-env", verbose = "silent")
Arguments
env_name |
Character. The name of the Conda environment where the tool will be run. Defaults to |
verbose |
Character string specifying the verbosity level of the function's output. Acceptable values are:
|
Value
A tibble containing all the packages installed in the specified environment, with the following columns:
- base_url
The base URL of the package source.
- build_number
The build number of the package.
- build_string
The build string describing the package build details.
- channel
The channel from which the package was installed.
- dist_name
The distribution name of the package.
- name
The name of the package.
- platform
The platform for which the package is built.
- version
The version of the package.
Examples
## Not run:
condathis::with_sandbox_dir({
# Creates a Conda environment with the CLI `fastqc`
condathis::create_env(
packages = "fastqc",
env_name = "fastqc-env"
)
# Lists the packages in env `fastqc-env`
dat <- condathis::list_packages("fastqc-env")
dim(dat)
#> [1] 34 8
})
## End(Not run)