provide_gitlab_url: Provide a gitlab URL for a Given Path

View source: R/gitlab.R

provide_gitlab_urlR Documentation

Provide a ⁠gitlab⁠ URL for a Given Path

Description

Provide a ⁠gitlab⁠ URL for a Given Path

Usage

provide_gitlab_url(path = ".")

Arguments

path

Path to the package directory (see devtools::as.package).

Value

a character string giving a ⁠github⁠ URL.

Examples

path <- file.path(tempdir(), "myPackage")
unlink(path, recursive = TRUE)
usethis::create_package(path, open = FALSE)
try(provide_gitlab_url(path))
gert::git_init(path)
provide_gitlab_url(path)
invisible(desc::desc_set(Package = "bar", file = path))
provide_gitlab_url(path)

packager documentation built on Aug. 16, 2023, 5:08 p.m.