update_data_cache: update_data_cache

Description Usage Arguments Value

View source: R/fct_update_data_cache.R

Description

Takes input from dataModal and adds new dataset to app and cache

Usage

1
2
3
4
5
6
7
8
9
update_data_cache(
  data_type,
  data_file,
  data_loc,
  data_url,
  data_name,
  cache,
  cache_dir
)

Arguments

data_type

Type of data e.g. Tabular, Time-Series, Image, Text

data_file

Data file object from fileInput()

data_loc

Local or URL

data_url

URL of the data to download

data_name

Name of the dataset

cache

Yes or No - whether to cache data, only valid for URL as local is automatically caches by fileInput()

cache_dir

Directpry to cache the data - default = "./cache/cached_datasets"

Value

The return value, if any, from executing the function.


adamwaring/dataviewer documentation built on Dec. 18, 2021, 10:25 p.m.