Skip to contents

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

Usage

wood_gitlab_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 GitLab 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

wood_gitlab_dependencies("limonaid", "r-packages")
#> <dependencies>
#>   Suggests:    ggplot2
#>   Suggests:    ggrepel
#>   Suggests:    knitr
#>   Suggests:    parallel
#>   Suggests:    psyverse (>= 0.3)
#>   Suggests:    sticky
#>   Suggests:    testthat
wood_gitlab_dependencies("rock", "r-packages", tag = "0.6.3")
#> <dependencies>
#>   Depends:     R (>= 3.0.0)
#>   Imports:     data.tree (>= 0.7.8)
#>   Imports:     dplyr (>= 0.7.8)
#>   Imports:     DiagrammeR (>= 1.0.0)
#>   Imports:     DiagrammeRsvg (>= 0.1)
#>   Imports:     ggplot2 (>= 3.2.0)
#>   Imports:     glue (>= 1.3.0)
#>   Imports:     graphics (>= 3.0.0)
#>   Imports:     htmltools (>= 0.5.0)
#>   Imports:     markdown (>= 1.1)
#>   Imports:     purrr (>= 0.2.5)
#>   Imports:     stats (>= 3.0.0)
#>   Imports:     utils (>= 3.5.0)
#>   Imports:     yaml (>= 2.2.0)
#>   Imports:     yum (>= 0.1.0)
#>   Suggests:    covr
#>   Suggests:    googlesheets4
#>   Suggests:    haven (>= 2.4)
#>   Suggests:    justifier (>= 0.2)
#>   Suggests:    knitr
#>   Suggests:    limonaid
#>   Suggests:    openxlsx (>= 4.2)
#>   Suggests:    pdftools
#>   Suggests:    preregr (>= 0.1.9)
#>   Suggests:    rENA (>= 0.1.6)
#>   Suggests:    readxl
#>   Suggests:    rmarkdown
#>   Suggests:    rvest
#>   Suggests:    rstudioapi
#>   Suggests:    striprtf
#>   Suggests:    testthat
#>   Suggests:    writexl
#>   Suggests:    XLConnect
#>   Suggests:    xml2