Skip to contents

This function queries GitHub for dependencies of the selected tagged commit of a repo. By default, it queries the latest commit instead.

Usage

wood_github_dependencies(package, user, tag = "latest")

Arguments

package

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

user

character(1)
Name of a user or organization.

tag

character(1)
Tag of a commit on GitHub or "latest" for the latest (possibly untagged) commit.

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_github_dependencies("gglgbtq", "turtletopia")
#> <dependencies>
#>   Imports:     ggplot2
#>   Imports:     graphics
#>   Imports:     grDevices
#>   Suggests:    knitr
#>   Suggests:    rmarkdown
#>   Suggests:    spelling
#>   Suggests:    testthat (>= 3.0.0)
wood_github_dependencies("versionsort", "turtletopia", tag = "v1.0.0")
#> <dependencies>
#>   Suggests:    covr
#>   Suggests:    spelling
#>   Suggests:    testthat (>= 3.0.0)
# }