This function was found in https://stackoverflow.com/questions/24846120/importing-data-into-r-rdata-from-github and can be used to load .RData files from GitHub repositories. This function can be used to load the Callcenter, Jambi, and Montana datasets from the Rfssa package hosted by GitHub at https://github.com/haghbinh/Rfssa. It was found that hosting such datasets on GitHub and not including them in the Rfssa R package saved a significant amount of space.
The GitHub url of the dataset.
A dataset specified by a GitHub url.
1 2 3 4 5 6 7
## Not run: # Loading different datasets from the Rfssa repository hosted by GitHub. call <- load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Callcenter.RData") jambi <- load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Jambi.RData") montana <- load_github_data("https://github.com/haghbinh/Rfssa/blob/master/data/Montana.RData") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.