github_source: Source an R file from GitHub

Description Usage Arguments Value

View source: R/git-data.R

Description

Source an R file from GitHub

Usage

1
github_source(path, sha, repo, api = getOption("github.api"), ...)

Arguments

path

(string) The path to the file in the repository

sha

(string) SHA or branch, if a branch is specified the HEAD commit is used.

repo

(string) The repository specified as "owner/repo".

api

(string, optional) The address to GitHub's API. Default: Uses the option github.api.

...

Parameters passed to gh_page.

Value

The result of sourcing the specified file.


ChadGoymer/github documentation built on June 1, 2017, 5:17 p.m.