Skip to contents

Converts a database to an single excel workbook where each table is its own spreadsheet.

Usage

sbf_save_db_to_workbook(
  workbook_name = sbf_get_workbook_name(),
  db_name = sbf_get_db_name(),
  exclude_tables = "^$",
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  epgs = NULL,
  x_name = ".*"
)

Arguments

workbook_name

The name of the excel workbook you are creating. Default is the base name of the current working directory.

db_name

A string of the database name.

exclude_tables

A regular expression listing tables to be excluded. Currently soft-deprecated. Use x_name instead.

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)

epgs

The projection to convert to

x_name

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

Examples

if (FALSE) { # \dontrun{
sbf_save_db_to_workbook()

# exclude the sites table
sbf_save_db_to_workbook(x_name = "^(?!sites$)")

# exclude the sites and species table
sbf_save_db_to_workbook(x_name = "^(?!(sites|species)$)")
} # }