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
tf <- tempfile()
export <- tempfile(fileext = ".zip")
import <- tempfile()
foosball3_create_db(tf)
foosball3_export_db(tf, export)
foosball3_import_db(export, import)
# Clean up example files
unlink(tf, TRUE, TRUE)
unlink(export, TRUE, TRUE)
unlink(import, TRUE, TRUE)