download: Download GitHub/Gitee repo release or archive file

Description Usage Arguments Value Examples

View source: R/fgit.R

Description

Download GitHub/Gitee repo release or archive file

Usage

1
download(repo, destdir, release = NULL, gitee = FALSE, ...)

Arguments

repo

A GitHub/Gitee repo in the format of username/repo, e.g. ShixiangWang/tinyscholar.

destdir

A target path to save the file.

release

Set to the version number (e.g. v1.0) for downloading release file.

gitee

If TRUE, download from Gitee repo instead of GitHub repo.

...

Other arguments passing to utils::download.file.

Value

Nothing

Examples

1
2
3
x <- tempdir()
download("ShixiangWang/tinyscholar", destdir = x)
dir(x)

ShixiangWang/wfun documentation built on Dec. 31, 2020, 4:31 p.m.