Clones repositories from GitHub to a local directory.

local_repo_clone(
  repo,
  local_path = ".",
  branch = "master",
  mirror = FALSE,
  verbose = FALSE
)

Arguments

repo

GitHub repo address with the form owner/name.

local_path

Local directory to store cloned repos.

branch

Repository branch to use.

mirror

Use equivalent of --mirror when cloning.

verbose

Display verbose output.

Examples

if (FALSE) { g = org_repos("Sta323-Sp18","hw3-") local_repo_clone(g, "hw3") }