Skip to contents

By default all tables are loaded. If x_name is specified, only the matching tables are read from the database.

Usage

sbf_load_datas_from_db(
  db_name = sbf_get_db_name(),
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  rename = identity,
  env = parent.frame(),
  x_name = ".*"
)

Arguments

db_name

A string of the database name.

sub

A string or character vector specifying the path to the sub folder (by default the current sub folder).

main

A string specifying the path to the main folder (by default the current main folder)

rename

A single function argument which takes a character vector and returns a character vector of the same length. Used to rename objects before they are loaded into the environment.

env

The environment to load the objects into

x_name

A string of the Perl-compatible regular expression to match.

Value

An invisible character vector of the names of the loaded tables.