Skip to contents

This function queries the selected universe for dependencies of the selected package.

Usage

wood_runiverse_dependencies(package, universe = "ropensci")

Arguments

package

character(1)
Name of a package to query for.

universe

character(1)
Name of a universe within R-universe, e.g. "ropensci".

Value

A data frame with three columns, all in string format:

  • package (package name),

  • version (minimum version requirement or NA if none),

  • type (dependency type, e.g. "Imports").

Examples

# \donttest{
wood_runiverse_dependencies("targets")
#> <dependencies>
#>   Depends:     R (>= 3.5.0)
#>   Imports:     base64url (>= 1.4)
#>   Imports:     callr (>= 3.4.3)
#>   Imports:     cli (>= 2.0.2)
#>   Imports:     codetools (>= 0.2.16)
#>   Imports:     data.table (>= 1.12.8)
#>   Imports:     digest (>= 0.6.25)
#>   Imports:     igraph (>= 1.2.5)
#>   Imports:     knitr (>= 1.34)
#>   Imports:     R6 (>= 2.4.1)
#>   Imports:     rlang (>= 1.0.0)
#>   Imports:     stats
#>   Imports:     tibble (>= 3.0.1)
#>   Imports:     tidyselect (>= 1.1.0)
#>   Imports:     tools
#>   Imports:     utils
#>   Imports:     vctrs (>= 0.2.4)
#>   Imports:     withr (>= 2.4.0)
#>   Imports:     yaml (>= 2.2.1)
#>   Suggests:    arrow (>= 3.0.0)
#>   Suggests:    bs4Dash (>= 0.5.0)
#>   Suggests:    clustermq (>= 0.8.95.1)
#>   Suggests:    crew (>= 0.0.5.9020)
#>   Suggests:    curl (>= 4.3)
#>   Suggests:    DT (>= 0.14)
#>   Suggests:    dplyr (>= 1.0.0)
#>   Suggests:    fst (>= 0.9.2)
#>   Suggests:    future (>= 1.19.1)
#>   Suggests:    future.batchtools (>= 0.9.0)
#>   Suggests:    future.callr (>= 0.6.0)
#>   Suggests:    gargle (>= 1.2.0)
#>   Suggests:    googleCloudStorageR (>= 0.7.0)
#>   Suggests:    gt (>= 0.2.2)
#>   Suggests:    keras (>= 2.2.5.0)
#>   Suggests:    markdown (>= 1.1)
#>   Suggests:    rmarkdown (>= 2.4)
#>   Suggests:    parallelly (>= 1.35.0)
#>   Suggests:    paws (>= 0.1.11)
#>   Suggests:    pingr (>= 2.0.1)
#>   Suggests:    pkgload (>= 1.1.0)
#>   Suggests:    processx (>= 3.4.3)
#>   Suggests:    qs (>= 0.24.1)
#>   Suggests:    reprex (>= 2.0.0)
#>   Suggests:    rstudioapi (>= 0.11)
#>   Suggests:    R.utils (>= 2.6.0)
#>   Suggests:    shiny (>= 1.5.0)
#>   Suggests:    shinybusy (>= 0.2.2)
#>   Suggests:    shinyWidgets (>= 0.5.4)
#>   Suggests:    testthat (>= 3.0.0)
#>   Suggests:    torch (>= 0.1.0)
#>   Suggests:    usethis (>= 1.6.3)
#>   Suggests:    visNetwork (>= 2.0.9)
wood_runiverse_dependencies("ggplot2", universe = "tidyverse")
#> <dependencies>
#>   Depends:     R (>= 3.3)
#>   Imports:     cli
#>   Imports:     glue
#>   Imports:     grDevices
#>   Imports:     grid
#>   Imports:     gtable (>= 0.1.1)
#>   Imports:     isoband
#>   Imports:     lifecycle
#>   Imports:     MASS
#>   Imports:     mgcv
#>   Imports:     rlang (>= 1.1.0)
#>   Imports:     scales (>= 1.2.0)
#>   Imports:     stats
#>   Imports:     tibble
#>   Imports:     vctrs (>= 0.5.0)
#>   Imports:     withr (>= 2.5.0)
#>   Suggests:    covr
#>   Suggests:    dplyr
#>   Suggests:    ggplot2movies
#>   Suggests:    hexbin
#>   Suggests:    Hmisc
#>   Suggests:    knitr
#>   Suggests:    mapproj
#>   Suggests:    maps
#>   Suggests:    maptools
#>   Suggests:    multcomp
#>   Suggests:    munsell
#>   Suggests:    nlme
#>   Suggests:    profvis
#>   Suggests:    quantreg
#>   Suggests:    ragg
#>   Suggests:    RColorBrewer
#>   Suggests:    rmarkdown
#>   Suggests:    rpart
#>   Suggests:    sf (>= 0.7-3)
#>   Suggests:    svglite (>= 1.2.0.9001)
#>   Suggests:    testthat (>= 3.1.2)
#>   Suggests:    vdiffr (>= 1.0.0)
#>   Suggests:    xml2
#>   Enhances:    sp
# }