Copys an existing SQLite database to the subfolder.

sbf_copy_db(
  path,
  db_name = sbf_get_db_name(),
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  exists = FALSE,
  ask = getOption("sbf.ask", TRUE)
)

Arguments

path

A string of the path to the database to copy (with the extension).

db_name

A string of the name for the new database (without the extension).

sub

A string 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)

exists

A logical scalar specifying whether the new database must already exist.

ask

A flag specifying whether to ask before deleting an existing database (if exists = FALSE).

Value

A flag indicating whether successfully copied.