Hard to give an answer without details. But check the RJDBC help page:
Due to the fact that JDBC can talk to a wide variety of databases, the SQL dialect understood by the database is not known in advance. Therefore the RJDBC implementation tries to adhere to the SQL92 standard, but not all databases are compliant. This affects mainly functions such as dbWriteTable that have to automatically generate SQL code. One major ability is the support for quoted identifiers. The SQL92 standard uses double-quotes, but many database engines either don’t support it or use other character. The
identifier.quote parameter allows you to set the proper quote character for the database used. For example MySQL would require identifier.quote="`". If set to NA, the ability to quote identifiers is disabled, which poses restrictions on the names that can be used for tables and fields. Other functionality is not affected.
Try this and see what happens:
allfiles4 -> allFilesFour
dbWriteTable(tdConnection, "testTwo", allFilesFour)
If works, then the problem is in the quote identifier. Change the line where you make the connection to something like:
tdConnection <- dbConnect( JDBC( identifier.quote = "`" ), ...
Check this post: Do different databases use different name quote?