Skip to contents

Returns the first Git repository URL found in the URL (preferred) or BugReports fields of a DESCRIPTION file.

Usage

desc_url_git(file = ".")

Arguments

file

DESCRIPTION file to use. By default the DESCRIPTION file of the current package (i.e. the package the working directory is part of) is used.

Value

A character scalar.

Details

Currently, this function recognizes GitLab, GitHub, Gitea, Codeberg, Pagure, Bitbucket and SourceHut repository URLs.

See also

Other package DESCRIPTION functions: desc_dep_vrsn(), desc_list(), desc_value()