Skip to contents

Utility to download / load datasets

Usage

dataload_dynamic(
  varnames = .arrow_ds_names[1:3],
  envir = globalenv(),
  folder_local_source = NULL,
  silent = FALSE,
  return_data_table = TRUE,
  onAttach = FALSE
)

Arguments

varnames

character vector of names of R objects to get from board, or set this to "all" to load all of them

envir

if needed to specify environment other than default, e.g., globalenv() or parent.frame()

folder_local_source

path of local folder to look in for locally saved copies in case pins board is not reachable by user.

silent

set to TRUE to suppress cat() msgs to console

return_data_table

whether the read_ipc_file() should return a data.table (T, the default), or arrow (F). Passed to dataload_from_local()

onAttach

Indicates whether the function is being called from onAttach. IF so, it will download all arrow files if user cannot connect to PINS board

Value

returns vector of names of objects now in memory in specified envir, either because

  1. already in memory or

  2. loaded from local disk or

  3. successfully downloaded.

Details

First checks memory, then installed package's data folder When package is first loaded, all arrow files are downloaded from a repository called ejamdata into package's data directory