load_data: Downloads and unzip files with cache support.

View source: R/file_utils.R

load_dataR Documentation

Downloads and unzip files with cache support.

Description

Searches the /tmp/documentId folder for flags indicating that the data associated with the documentId has previously been loaded. If it has not, downloads the file and, if it is a ZIP archive, unzips it. The cache is cleared by the GarbageCollector

Usage

load_data(ctx, documentId, force_load = FALSE)

Arguments

ctx

Tercen context.

documentId

Identifier for file to be loaded.

force_load

Downloads and unzips data regardless of cache

Examples

load_data(ctx, docId)

tercen/tim documentation built on May 3, 2023, 10:43 p.m.