topo_sort: Package dependency topological sort.

Description Usage Arguments Value Examples

Description

This is implemented via a naive depth-first search - it will not warn if there are cycles in the dependency graph.

Usage

1
  topo_sort(packages)

Arguments

packages

a named list of packages that should be sorted topologically according to their dependencies,

Value

a named list of packages ordered in a way that they can be sequentially installed from source.

Examples

1
2
3
4
5
pkgs <- list(
  a = package_info(test_source(), "a"),
  b = package_info(test_source(), "b")
)
topo_sort(pkgs)

hadley/packman documentation built on May 17, 2019, 11:04 a.m.