Skip to contents

Other than all the explicitly supported repositories (CRAN, Bioconductor, etc.), locally set up repositories can also be analysed using {woodendesc}. The requirement is they must contain the PACKAGES file (or PACKAGES.gz, its compressed counterpart) under /src/contrib path; the file should effectively be a concatenation of relevant attributes from all DESCRIPTION files of the packages the repository contains.

Packages

To list all available packages the user should use wood_url_packages().

wood_url_packages("https://colinfay.me")
#>  [1] "craneur"        "jekyllthat"     "tidystringdist" "attempt"       
#>  [5] "rpinterest"     "rgeoapi"        "proustr"        "languagelayeR" 
#>  [9] "fryingpane"     "dockerfiler"    "devaddins"

Available package version

The structure of PACKAGES file allows only one version to be stored, so wood_url_version() may only return this one version.

wood_url_version("dockerfiler", repository = "https://colinfay.me")
#> [1] "0.1.1"

Package dependencies

The PACKAGES file is supposed to contain dependency data as well.

wood_url_dependencies("tidystringdist", repository = "https://colinfay.me")
#> <dependencies>
#>   Imports:     stringdist
#>   Imports:     rlang
#>   Imports:     magrittr
#>   Imports:     dplyr
#>   Imports:     purrr
#>   Imports:     attempt
#>   Suggests:    testthat
#>   Suggests:    knitr
#>   Suggests:    rmarkdown
#>   Suggests:    covr