Skip to contents

Harvests and consolidates function usage tables from pages of a Quarto website by searching for tables with the CSS class "usedthese"

Usage

used_there(url, num_links = 20)

Arguments

url

The url to the website listing page of posts containing usage tables created with used_here()

num_links

The number of links returned from the listing page may be restricted using this argument. Defaults to 20.

Value

A tibble summarising package & function usage

Examples

# Uses a Quarto listing url to scrape & consolidate usage
used_there("https://www.quantumjitter.com/project/", 1)
#> # A tibble: 67 × 4
#>    Package    Function                n url                                     
#>    <chr>      <chr>               <int> <chr>                                   
#>  1 base       as.character            1 https://www.quantumjitter.com/project/f…
#>  2 base       as.integer              1 https://www.quantumjitter.com/project/f…
#>  3 base       c                       8 https://www.quantumjitter.com/project/f…
#>  4 base       is.na                   1 https://www.quantumjitter.com/project/f…
#>  5 base       library                 5 https://www.quantumjitter.com/project/f…
#>  6 base       list                    5 https://www.quantumjitter.com/project/f…
#>  7 conflicted conflict_prefer_all     1 https://www.quantumjitter.com/project/f…
#>  8 conflicted conflict_scout          1 https://www.quantumjitter.com/project/f…
#>  9 dplyr      arrange                 1 https://www.quantumjitter.com/project/f…
#> 10 dplyr      desc                    1 https://www.quantumjitter.com/project/f…
#> # … with 57 more rows