If you have an older file with tournament results, you can try to
import those results with this function. It will create a new copy
of the database (using foosball3_create_db()), making sure it
complies with the latest database scheme specification used by this package.
Arguments
- file
An SQLite file or a zipped collection of csv files (created with
foosball3_export_db()), to be imported into the standardised database structure.- target
Target file path where the clean database will be stored. Existing files at this location may be overwritten.
- ...
Ignored
Examples
target <- tempfile(fileext = ".db")
zip_file <- system.file(package = "foosball3", "example.zip")
foosball3_import_db(zip_file, target)
# Cleanup
unlink(target)