get_repo_owner {risk.assessr}R Documentation

Extract GitHub repository owner from links

Description

Given a vector of GitHub links and a package name, this function finds the link corresponding to the package and extracts the GitHub repository owner.

Usage

get_repo_owner(links, pkg_name)

Arguments

links

A character vector of GitHub URLs.

pkg_name

A string representing the name of the package.

Value

A string containing the GitHub repository owner, or NA if not found.


[Package risk.assessr version 2.0.0 Index]