download_library: Download and Load a UME Formula Library from Zenodo

download_libraryR Documentation

Download and Load a UME Formula Library from Zenodo

Description

Downloads one of the UME formula libraries from Zenodo only when explicitly called by the user.

Unlike earlier versions, this CRAN-compliant implementation:

  • never writes to the user's filespace unless dest is explicitly provided

  • does NOT create ~/.ume/ or any other default directory

  • does NOT perform automatic caching

  • In non-interactive environments (CRAN checks), the function returns NULL

Usage

download_library(
  library = "lib_05.rds",
  doi = "10.5281/zenodo.17606457",
  dest = NULL,
  overwrite = FALSE
)

Arguments

library

Character. One of "lib_02.rds" or "lib_05.rds".

doi

Character. Zenodo DOI.

dest

Optional file path where the library should be saved. If NULL, the library is loaded into memory only.

overwrite

Logical. Redownload even if dest exists?

Value

A data.table or NULL (in non-interactive mode).


ume documentation built on Dec. 13, 2025, 1:06 a.m.