% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read-backends.R
\name{tl_read_github}
\alias{tl_read_github}
\title{Read from GitHub}
\usage{
tl_read_github(source, path = NULL, ref = "main", ...)
}
\arguments{
\item{source}{A GitHub URL or \code{"owner/repo"} string.}

\item{path}{Path to the file within the repository (required when
\code{source} is \code{"owner/repo"} format).}

\item{ref}{Branch, tag, or commit SHA. Default is \code{"main"}.}

\item{...}{Additional arguments passed to the format-specific reader.}
}
\value{
A \code{tidylearn_data} object containing the downloaded data.
}
\description{
Downloads a raw file from a GitHub repository and reads it into a
\code{tidylearn_data} object. Accepts either a full GitHub URL or a
\code{owner/repo} shorthand with a file path.
}
\examples{
\donttest{
# data <- tl_read_github("user/repo", path = "data/file.csv")
# data <- tl_read_github(
#   "https://github.com/user/repo/blob/main/data/file.csv"
# )
}

}
