Learn R Programming

packager (version 1.9.0)

provide_gitlab_url: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab