github_raw: Generate link to raw Github file

Description Usage Arguments Value

View source: R/github_raw.R

Description

Converts Github path/repo/file information into a link to the raw version of the file

Usage

1
github_raw(file, repo = NULL)

Arguments

file

Name of desired file; if repo is NULL, then this value should also provide repo information, i.e., owner and name of the repository<e2><80><93>e.g., "owner/repo/file.ext". Alternatively, user may supply the URL to the file as it appears in a web browser, e.g., "https://github.com/mkearney/driven-snow/blob/master/theme/driven-snow.rstheme"

repo

Repository name information formatted as username/repo. If this information is provided in the value supplied to file then leave this as NULL (the default)

Value

Returns the URL path to the raw version of the file.


tfse documentation built on May 2, 2019, 11:28 a.m.