pages {ghclass} | R Documentation |
Retrieve information about GitHub Pages sites and builds.
Description
-
pages_enabled()
- returnsTRUE
if a Pages site exists for the repo. -
pages_status()
- returns more detailed information about a repo's Pages site. -
pages_create()
- creates a Pages site for the provided repos. -
pages_delete()
- deletes the Pages site for the provided repos.
Usage
pages_enabled(repo)
pages_status(repo)
pages_create(
repo,
build_type = c("legacy", "workflow"),
branch = "main",
path = "/docs"
)
pages_delete(repo)
Arguments
repo |
Character. Address of repositories in |
build_type |
Character. Either |
branch |
Character. Repository branch to publish. |
path |
Character. Repository path to publish. |
Value
pages_enabled()
returns a named logical vector - TRUE
if a Pages site exists, FALSE
otherwise.
pages_status()
returns a tibble containing details on Pages sites.
pages_create()
& pages_delete()
return an invisible list containing the API responses.
Examples
## Not run:
pages_enabled("rundel/ghclass")
pages_status("rundel/ghclass")
## End(Not run)