Description Usage Arguments Details Value Author(s)
Order packages by their dependencies
1 | order_pkgs(pkgs, inst_pkgs, which = c("Depends", "Imports", "LinkingTo"))
|
pkgs |
The packages to order |
inst_pkgs |
a database of installed packages as returned by |
which |
Which type of dependencies should be taken into account. a character vector listing the types of dependencies, a subset of <e2><80><98>c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances")<e2><80><99>. Character string <e2><80><98>"all"<e2><80><99> is shorthand for that vector, character string <e2><80><98>"most"<e2><80><99> for the same vector without <e2><80><98>"Enhances"<e2><80><99>. |
Given packages, the function orders them so that every package only depends on other packages with lower order number. This way, they can safely be removed from the highest value down.
A data frame with the column 'pkg' giving the name of the package and 'level', by which the dataframe is sorted from lowest to highest.
Holger Hoefling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.