I've spent some time using the RDBOC
library to write a data frame to an Access table but gave it up after realizing that it suppresses white spaces from column names.
Now I'm trying the dboc
library, for which I've found fewer references on the web.
The connection to the database is created by writing:
con <- dbConnect(odbc(), .connection_string = paste("Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=", my_db_path, sep = ""))
After that I tried two alternatives for writing the data frame to a table:
dbWriteTable(con, "existing_table", my_df, append = TRUE)
dbWriteTable(con, "existing_table", my_df, overwrite = TRUE)
Both returned the error below. Column names in the data frame match the column names in the table.
Error: nanodbc/nanodbc.cpp:1763: HYC00: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented
Any guidance on how to debug this error?