Skip to contents

This function combines multiple dependency lists into a single data.frame with additional info about "origin" package, i.e. which package has this dependency.

Usage

squash(object)

# S3 method for wood_dep_list
squash(object)

Arguments

object

wood_dep_list()
A list of dependencies to compress.

Value

A data.frame object similar to these returned by _dependencies

functions, but with additional column named origin.

Examples

# \donttest{
deps <- wood_dependencies(c("versionsort", "deepdep", "gglgbtq"))
squash(deps)
#> <squashed dependencies>
#> versionsort  Suggests:    covr
#>              Suggests:    spelling
#>              Suggests:    testthat (>= 3.0.0)
#> deepdep      Depends:     R (>= 3.2.0)
#>              Imports:     cranlogs
#>              Imports:     httr
#>              Imports:     jsonlite
#>              Suggests:    BiocManager
#>              Suggests:    covr
#>              Suggests:    devtools
#>              Suggests:    ggplot2
#>              Suggests:    ggraph
#>              Suggests:    graphlayouts
#>              Suggests:    igraph
#>              Suggests:    knitr
#>              Suggests:    miniCRAN
#>              Suggests:    plyr
#>              Suggests:    rmarkdown
#>              Suggests:    scales
#>              Suggests:    shiny
#>              Suggests:    shinycssloaders
#>              Suggests:    spelling
#>              Suggests:    stringi
#>              Suggests:    testthat (>= 2.1.0)
#>              Suggests:    vcr
#> gglgbtq      Imports:     ggplot2
#>              Imports:     graphics
#>              Imports:     grDevices
#>              Suggests:    knitr
#>              Suggests:    rmarkdown
#>              Suggests:    spelling
#>              Suggests:    testthat (>= 3.0.0)
# }