Description Usage Arguments Value Examples
Modified from: https://gist.github.com/ritchieking/5de10cde6b46f3536967a908fe806b5f This is a general function for fetching data from GitHub. This makes it possible to host small amounts of configuration data and parameters on the web by hosting it in a repo.
1 | fetch_github_data(repo, path, gh_root = "")
|
repo |
Is the name of the repository. |
path |
Is the path in the repo to the file. |
gh_root |
If set to "" will try to access the file from your saved GitHub username. If a group is given, will attempt to fetch from that another GitHub account or organization. |
The file as raw text from a GitHub repo.
1 2 3 | raw_file <- fetch_github_data(repo="Lab_Configs",
path="datatracker/lab_cfg.json",
gh_root="DecisionNeurosciencePsychopathology")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.