Search for package versions and dependencies

Description

search() searches for available versions of a conda package and displays their dependencies. This is useful for exploring what versions are available before adding a package to your pixi project. The search shows version information and dependency requirements for each version found.

When called without arguments, it behaves like base R’s search() function and returns the current search path.

Usage

search(package, channel = NULL, dry_run = FALSE)

Arguments

package Package name to search for. Will be automatically prefixed with "r-" for R packages. If missing, returns the search path like base R’s search().
channel Optional. Defaults to conda-forge, but other conda channels can be specified to search in specific repositories.
dry_run Should the command be executed? If TRUE, the final pixi command will be shown but not executed. FALSE (default) executes the command.

Value

When package is provided: doesn’t return objects, displays search results in console. When package is missing: returns character vector of search path (like base R’s search()).

Examples

library("rpix")

# Search for available versions of tibble
search("tibble")

# Search in a specific channel
search("numpy", channel = "conda-forge")

# Just show the command without running it
search("dplyr", dry_run = TRUE)

# Get search path (like base R)
search()