desc_url_git: Get the Git repository URL from 'DESCRIPTION' file

desc_url_gitR Documentation

Get the Git repository URL from DESCRIPTION file

Description

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.

Details

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

Value

A character scalar.

See Also

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


salim-b/pal documentation built on Feb. 28, 2025, 6:51 p.m.