Skip to contents

This function copies an existing SQLite database to a new location.

Usage

copy_database(database, new_database)

Arguments

database

Path to the original SQLite database.

new_database

Path to the destination for the SQLite database copy.

Value

TRUE if the copy is successful, otherwise FALSE.

Examples

if (FALSE) { # \dontrun{
  success <- copy_database("path_to_original.db", "path_to_new.db")
  if (!success) {
    stop("Failed to copy the database.")
  }
} # }