R/retrieveDataFactory.R

Defines functions retrieveDataFactory

Documented in retrieveDataFactory

retrieveDataFactory <- function() {
  traceFactory <- function(factory_o_1, info_s_1 = 'default') {
    if (isAuditable()) {
      cat(info_s_1,
          'data factory address', data.table::address(factory_o_1),
          '\nsuffixes', strBracket(strJoin(factory_o_1$retrieveKnownSuffixes())),
          "\n")
    }
    factory_o_1
  }

    g <- options('op_mt_data_factory')$op_mt_data_factory
  if (is.environment(g) && is(g, 'DataFactory')) return(traceFactory(g, 'user defined'))
  traceFactory(DataFactory())
}

Try the wyz.code.metaTesting package in your browser

Any scripts or data that you put into this service are public.

wyz.code.metaTesting documentation built on Sept. 25, 2023, 9:06 a.m.