There is already support for use_github_labels in usethis, it would be great to programmatically turn on GitHub Pages for a repo without having to visit the settings page.
use_github_pages(source.branch = "master")
# Your site is published at https://username.github.io/repo
If the provided source.branch cannot be found then return the following error (a la http://style.tidyverse.org/error-messages.html#hints):
use_github_pages(source.branch = "not-a-real-branch")
#> Can't find branch 'not-a-real-branch' in the list of branches for GitHub repo 'my-repo'.
#> Refer to https://github.com/username/my-repo/settings for further settings.
There is already support for
use_github_labelsinusethis, it would be great to programmatically turn on GitHub Pages for a repo without having to visit the settings page.If the provided
source.branchcannot be found then return the following error (a la http://style.tidyverse.org/error-messages.html#hints):