Read the Croissant metadata of a Hugging Face dataset
Source:R/13_huggingface.R
read_croissant_hf.RdDownloads the metadata the Hub generates for a dataset
(<endpoint>/api/datasets/<owner>/<name>/croissant) and reads it with
read_croissant(). Its record sets read through read_record_set(),
which downloads the Parquet files they name from the dataset's
refs/convert/parquet branch.
Examples
if (FALSE) { # interactive()
x <- read_croissant_hf("ylecun/mnist")
x
head(read_record_set(x, "mnist", n_max = 5L))
}