Skip to contents

Performs a two-way check to synchronize the package and database.

  1. Package version must be >= the minimum package version recorded in the database metadata table

  2. Database version must be >= the minimum database version recorded in the package DESCRIPTION file

Usage

check_db_sync(conn)

Arguments

conn

A valid DBI connection object pointing to a local PTAXSIM database file.

Value

Returns TRUE if all requirements are met, otherwise returns an error.

See also

Other check: check_db_conn()

Examples

if (FALSE) { # \dontrun{
ptaxsim_db_conn <- DBI::dbConnect(RSQLite::SQLite(), "./ptaxsim.db")
check_db_sync(ptaxsim_db_conn)
} # }