Learn R Programming

packager (version 1.15.2)

get_gitlab_log: Read a gitlab Check Log

Description

For a given user's project, the last log for jobs for name and stage "check" will be read. This is assumed to be the output of R CMD check, rcmdcheck::rcmdcheck devtools::check, or the like.

Usage

get_gitlab_log(user, project, private_token, ...)

Value

A character vector containing the lines of the gitlab log.

Arguments

user

The user's name on gitlab.

project

The project's name on gitlab.

private_token

The user's private token on gitlab.

...

Arguments passed to httr::GET.

Examples

Run this code
if (FALSE) {
gitlab_token <- readLines(file.path("~", ".gitlab_private_token.txt"))
if (Sys.info()[["nodename"]] == "fvafrdebianCU") {
    j <- get_gitlab_log(user = "fvafrcu", project = "packager",
                        private_token = gitlab_token,
                        httr::use_proxy("10.127.255.17", 8080))
} else {
    j <- get_gitlab_log(user = "fvafrcu", project = "packager",
                        private_token = gitlab_token)
}

cat(j, sep = "\n")
}

Run the code above in your browser using DataLab