2. Error: rapi_startup: Failed to open database... after running bdc_query_names_taxadb()
Complete error message below:
Error: rapi_startup: Failed to open database: IO Error: Trying to read a database file with version number 31, but we can only read version 33.
The database file was created with an older version of DuckDB.
The storage of DuckDB is not yet stable; newer versions of DuckDB cannot read old database files and vice versa.
The storage will be stabilized when version 1.0 releases.
For now, we recommend that you load the database file in a supported version of DuckDB, and use the EXPORT DATABASE command followed by IMPORT DATABASE on the current version of DuckDB.
You can solve this by deleting previous database version with fs::dir_delete(taxadb:::taxadb_dir()) and running your query again.
This is a pinned issue, listing the most common errors that we observed in the previous issues.
1.
Error in utils::download.file...
after runningbdc_clean_names()
Complete error message below:
On Windows systems, you can resolve by running
options(download.file.method = "wininet")
beforebdc_clean_names()
.For example:
See: https://github.com/brunobrr/bdc/issues/230#issuecomment-1333589542
2.
Error: rapi_startup: Failed to open database...
after runningbdc_query_names_taxadb()
Complete error message below:
You can solve this by deleting previous database version with
fs::dir_delete(taxadb:::taxadb_dir())
and running your query again.For example:
See: https://github.com/brunobrr/bdc/issues/233#issuecomment-1199893394