extract_entries: Extract entries from a list based on the name

View source: R/extract_entries.R

extract_entriesR Documentation

Extract entries from a list based on the name

Description

Given a list, extract items based on their name

Usage

extract_entries(api_list, entry_name, fixed = TRUE)

Arguments

api_list

a list (probably from the GitHub api)

entry_name

the name of the entry to be extracted from the api list e.g. "html_url"

fixed

TRUE/FALSE whether or not the exact string should be used. FALSE would mean regex will be interpretted.

Value

a subset of api_list that only contains items with the entry_name string in the name.

Examples


repo_info <- get_repo_info("jhudsl/Documentation_and_Usability")

extract_entries(repo_info, "release", fixed = TRUE)

jhudsl/cow documentation built on April 17, 2025, 3:14 p.m.