View source: R/covrpage_snapshot.R
| covrpage_snapshot | R Documentation |
Runs a covrpage on a GitHub repository in a sterile environment
covrpage_snapshot(
repo,
branch = NULL,
PAT = Sys.getenv("GITHUB_PAT"),
host = "api.github.com",
preview = TRUE
)
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" |
preview |
boolean, to open the output in viewer, Default: TRUE |
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.
covrpage clone install_github
Other invoke:
covrpage_ci(),
covrpage()
## Not run:
if(interactive()){
covrpage_snapshot('tidyverse/purrr')
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.