Runs a covrpage on a GitHub repository in a sterile environment

map_testthat_snapshot(
  repo,
  branch = NULL,
  PAT = Sys.getenv("GITHUB_PAT"),
  host = "api.github.com"
)

Arguments

repo

character, Public GitHub repository

branch

character, Name of the branch to checkout. Default: NULL

PAT

character, GitHub Personal Access Token, Default: Sys.getenv("GITHUB_PAT")

host

character, GitHub API host to use, Default: "api.github.com"

Value

tibble

Details

Creates a markdown output that is sent to the internal viewer.

Setting branch to NULL means that clone will use the remote's default branch.

Examples

if (FALSE) {
if(interactive()){
 map_testthat_snapshot('tidyverse/purrr')
 }
}