This function checks if there's a newer version of the reptiledb.data package available. It's automatically called when reptiledbr loads, but can also be called manually by users.
Value
Invisibly returns the update check result object from reptiledb.data::check_data_update(), or NULL if the package is not installed.
Examples
# \donttest{
# Check for updates with user-friendly messages
check_reptiledb_update()
#> ── Reptile Database Update Check ───────────────────────────────────────────────
#>
#> ! A newer version is available
#>
#> Your version: September 2025
#> Latest version: June 2026
#> Days behind: 273 days
#>
#> ℹ Download the latest version:
#> <http://www.reptile-database.org/data/>
#>
# Silent check for programmatic use
result <- check_reptiledb_update(silent = TRUE)
if (!is.null(result) && result$needs_update) {
message("Update available!")
}
#> Update available!
# }