Skip to contents

An S3 reference_source is a list describing how to retrieve and cache one reference catalogue.

Construction

Use reference_source() directly, or read a source declaration with read_reference_configuration().

Construction validates the settings but does not download files or create the cache directory.

Structure

  • url: a normalized local directory or HTTP(S) base URL.

  • cache: the configured cache root; retrieval uses source-specific subdirectories beneath it.

  • remote: whether the source uses HTTP(S).

  • headers: NULL, named HTTP headers, or a function supplying headers for each request.

  • timeout: the positive request timeout in seconds.

  • max_connections: the positive integer limit for simultaneous CSV downloads.

Cache lifetime

The default cache is a new path in the current R session's temporary directory.

An explicitly configured cache path can be reused across sessions.

Authentication headers remain in memory and are not written to the cache.

Use and methods

Pass the object to read_reference_catalogue() or get_reference_tables().

The registered print.reference_source() method displays the source URL and cache path without printing headers.

This is the only package-defined S3 method for this class.