hfhub is a minimal port of huggingface_hub that allows downloading files from Hugging Face Hub and caching them with the same structure used in the original implementation.
hfhub can be installed from CRAN with:
You can install the development version of hfhub like so:
hub_download the the only exported function in the package and can be used to download and cache a file from any Hugging Face Hub repository. It returns a path to the file.