% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ghclass-internal.R, R/repo_add_file.R,
%   R/repo_get_file.R, R/util_args.R, R/util_cli.R, R/util_github.R,
%   R/util_repo.R, R/util_safely.R
\name{ghclass-internal}
\alias{ghclass-internal}
\alias{read_bin_file}
\alias{github_api_repo_get_file}
\alias{arg_is_chr_scalar}
\alias{arg_is_lgl_scalar}
\alias{arg_is_pos_int_scalar}
\alias{arg_is_chr}
\alias{arg_is_lgl}
\alias{arg_is_pos_int}
\alias{cli_glue}
\alias{cli_stop}
\alias{cli_warn}
\alias{github_api_repo_tree}
\alias{repo_files}
\alias{ghclass_api_v3_req}
\alias{match_repo}
\alias{get_repo_name}
\alias{get_repo_owner}
\alias{format_repo}
\alias{result}
\alias{error}
\alias{succeeded}
\alias{failed}
\alias{status_msg}
\title{Internal ghclass helpers}
\usage{
read_bin_file(x)

github_api_repo_get_file(repo, path, branch = NULL)

arg_is_chr_scalar(..., allow_null = FALSE, allow_na = FALSE)

arg_is_lgl_scalar(..., allow_null = FALSE, allow_na = FALSE)

arg_is_pos_int_scalar(..., allow_null = FALSE, allow_na = FALSE)

arg_is_chr(..., allow_null = FALSE, allow_na = FALSE, allow_empty = TRUE)

arg_is_lgl(..., allow_null = FALSE, allow_na = FALSE, allow_empty = TRUE)

arg_is_pos_int(..., allow_null = FALSE)

cli_glue(..., .envir = parent.frame())

cli_stop(..., .envir = parent.frame())

cli_warn(..., .envir = parent.frame())

github_api_repo_tree(repo, sha = NULL)

repo_files(repo, branch = NULL)

ghclass_api_v3_req(
  endpoint,
  ...,
  .send_headers = character(),
  version = "2022-11-28",
  limit = github_get_api_limit()
)

match_repo(repo, index = 1)

get_repo_name(repo)

get_repo_owner(repo)

format_repo(repo, branch = NULL, path = NULL)

result(x)

error(x)

succeeded(x)

failed(x)

status_msg(
  x,
  success = NULL,
  fail = NULL,
  include_error_msg = TRUE,
  .envir = parent.frame()
)
}
\description{
These functions are exported so that companion packages (e.g.
ghclasspeer) can reuse them. They are not intended for end users
and their interfaces may change without notice.
}
\keyword{internal}
