github_raw: Generate link to raw Github file

Description Usage Arguments Value

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–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.


mkearney/tfse documentation built on July 6, 2019, 3:18 a.m.