tolower(FIELD)
to find “API”, “api”, “Api”, etc\\b
in regex pattern for “word boundary”
"\\bapi\\b"
= “api surrounded by spaces, (), newline, etc”api_pkgs <- tools::CRAN_package_db() |>
dplyr::as_tibble() |>
dplyr::filter(
stringr::str_detect(tolower(Description), "\\bapi\\b") |
stringr::str_detect(tolower(Title), "\\bapi\\b")
) |>
dplyr::select(Package, Title)
api_pkgs
#> # A tibble: 923 × 2
#> Package Title
#> <chr> <chr>
#> 1 academictwitteR "Access the Twitter Academic Research Product Track V2 API…
#> 2 ACEsearch "'ACE' Search Engine API"
#> 3 acled.api "Automated Retrieval of ACLED Conflict Event Data"
#> 4 adbcdrivermanager "'Arrow' Database Connectivity ('ADBC') Driver Manager"
#> 5 adbcpostgresql "'Arrow' Database Connectivity ('ADBC') 'PostgreSQL' Drive…
#> 6 adbcsqlite "'Arrow' Database Connectivity ('ADBC') 'SQLite' Driver"
#> 7 adformR "Get Adform Ads Data via the 'Windsor.ai' API"
#> 8 adobeanalyticsr "R Client for 'Adobe Analytics' API 2.0"
#> 9 adsDataHubR "Google Ads Data Hub API Client"
#> 10 adwordsR "Access the 'Google Adwords' API"
#> # ℹ 913 more rows
r_universe_apis_resps |>
httr2::resps_data(
\(resp) {
httr2::resp_body_json(resp)$results |>
tibble::enframe(name = NULL) |>
tidyr::unnest_wider(value)
}
) |>
dplyr::select(Package, Title)
#> # A tibble: 1,453 × 2
#> Package Title
#> <chr> <chr>
#> 1 hoopR "Access Men's Basketball Play by Play Data"
#> 2 wehoop "Access Women's Basketball Play by Play Data"
#> 3 gptstudio "Use Large Language Models Directly in your Development\nEnv…
#> 4 googleLanguageR "Call Google's 'Natural Language' API, 'Cloud Translation' A…
#> 5 googleAuthR "Authenticate and Create Google APIs"
#> 6 hereR "'sf'-Based Interface to the 'HERE' REST APIs"
#> 7 salesforcer "An Implementation of 'Salesforce' APIs Using Tidy Principle…
#> 8 geosapi "GeoServer REST API R Interface"
#> 9 nhlapi "A Minimum-Dependency 'R' Interface to the 'NHL' API"
#> 10 taxize "Taxonomic Information from Around the Web"
#> # ℹ 1,443 more rows
Inspect
Network
tabFetch/XHR
Header Options
> Path
DSLC.io/wapir | Jon Harmon | wapir.io