-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Describe the situation that led to the request and a solution
I would like to know all repositories assigned to a given topic and other metadata about that topic. The function get_topic() should reside in R/get_.R and should allow users to pass a single string with a given topic. An additional wrapper function could be created called get_topics() that uses purrr::map_df() to return a data frame with multiple topics. Regardless, a data frame (well tibble) should be returned. The url for querying the API about a given topic is https://api.github.com/search/repositories?q=topic: where should be replaced with the topic of interest. For example, https://api.github.com/search/repositories?q=topic:fisheries will return all the repositories with the topic of "fisheries".
Alternative solutions
Pull information from all relevant repositories and see the topics that are assigned to them. This won't search for repositories that you do not know about with the given topic.
Statistical validity
No response
Additional context
No response