This function queries GitHub for dependencies of the selected tagged commit of a repo. By default, it queries the latest commit instead.
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 orNA
if none),type
(dependency type, e.g."Imports"
).
See also
Functions for GitHub:
wood_github_latest()
,
wood_github_packages()
,
wood_github_tags()
,
wood_github_versions()
Functions that query package dependencies:
wood_bioc_dependencies()
,
wood_core_dependencies()
,
wood_cran_dependencies()
,
wood_dependencies()
,
wood_local_dependencies()
,
wood_runiverse_dependencies()
,
wood_url_dependencies()
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)
# }