Downloads a dataset file from Kaggle using the Kaggle CLI and reads it into
a tidylearn_data object. Requires the Kaggle CLI to be installed and
configured (pip install kaggle).
Usage
tl_read_kaggle(source, file = NULL, dest = tempdir(), type = "dataset", ...)Arguments
- source
A Kaggle dataset slug (e.g.,
"user/dataset-name") or a Kaggle URL.- file
The specific file to read from the dataset. If
NULLand the dataset contains exactly one file, it is read automatically.- dest
Directory to download files to. Default is a temporary directory.
- type
Either
"dataset"(default) or"competition".- ...
Additional arguments passed to the format-specific reader.
