Skip to contents

Query CRAN by name and fetch metadata

Usage

ZoteroCran(id, meta = list(), silent = TRUE, log = list())

Arguments

id

name of R package

meta

A list collecting all metadata used to create , Default: list()

silent

c2z is noisy, tell it to be quiet, Default: TRUE

log

A list for storing log elements, Default: list()

Value

A Zotero-type matrix (tibble)

Details

Please see https://oeysan.github.io/c2z/

See also

Examples

# \donttest{
  # Search cran for package `dplyr`
  example <- ZoteroCran(c("dplyr", "jsonlite", "httr"))

  # Print index using `ZoteroIndex`
  if (any(nrow(example$data))) {
  ZoteroIndex(example$data) |>
    dplyr::select(name) |>
    print(width = 80)
  }
#> # A tibble: 3 × 1
#>   name                                                                     
#>   <chr>                                                                    
#> 1 Wickham (2023a) dplyr: A Grammar of Data Manipulation                    
#> 2 Wickham (2023b) httr: Tools for Working with URLs and HTTP               
#> 3 Ooms (2023) jsonlite: A Simple and Robust JSON Parser and Generator for R
# }