Downloads a raw file from a GitHub repository and reads it into a
tidylearn_data object. Accepts either a full GitHub URL or a
owner/repo shorthand with a file path.
Arguments
- source
A GitHub URL or
"owner/repo"string. A URL is either a file page (https://github.com/<owner>/<repo>/blob/<ref>/<path>, withrawin place ofblobor with neither, and with or withoutwww.and a query such as?raw=true) or a raw file (https://raw.githubusercontent.com/...), whose query is kept for the download. Zip archives are not read from GitHub: download the file and read it withtl_read_zip().- path
Path to the file within the repository (required when
sourceis"owner/repo"format).- ref
Branch, tag, or commit SHA. Default is
"main".- ...
Additional arguments passed to the format-specific reader.
- trust_rds
Logical. Read an
.rds,.rdataor.rdafile on R older than 4.4.0? Those versions can run code embedded in a crafted file as it is read (CVE-2024-27322), so such files are refused there unless this isTRUE. It has no effect on R 4.4.0 or later. DefaultFALSE.
