Skip to contents

Git Clone from URL by FastGit

Usage

fgit_clone(
  repo,
  dir = tempdir(),
  branch = NULL,
  repo_check = TRUE,
  overwrite = FALSE,
  verbose = TRUE
)

Arguments

repo

The repository name or url from GitHub.com

dir

The output directory. `tempdir()` will be used by default.

branch

Clone from which branch.

repo_check

Check the existence of repository

overwrite

Overwrite the exist directories. Default is `FALSE`

verbose

Verbose logs. Default is `TRUE`

Value

No return value, called for side effects

Examples

if (FALSE) {
fgit_clone("https://github.com/womeimingzi11/fgitR", overwrite = TRUE)
fgit_clone("womeimingzi11/fgitR", overwrite = TRUE)
}