Learn R Programming

mighty.component (version 0.2.0)

mighty_repos: Collection of component repos

Description

An ordered collection of component repos. Lookups search the repos in order, and the first match wins.

Each element of repos is either a repo spec, passed to mighty_repo(), or an object inheriting from mighty_repo_class. Repos are created once when the collection is created.

Usage

mighty_repos(repos = character(0))

Value

A mighty_repos object: a list of repos.

Arguments

repos

character vector of repo specs, a single mighty_repo_class object, or a list of repo specs and mighty_repo_class objects.

See Also

find_component(), list_components()

Examples

Run this code
path <- system.file("examples", package = "mighty.component")
repos <- mighty_repos(repos = c(path, paste0("local::", path)))
repos

find_component(component = "ady", repos = repos)

Run the code above in your browser using DataLab