{"action":"opened","issue":{"url":"https://api.github.com/repos/rstats-db/RSQLite/issues/126","labels_url":"https://api.github.com/repos/rstats-db/RSQLite/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/rstats-db/RSQLite/issues/126/comments","events_url":"https://api.github.com/repos/rstats-db/RSQLite/issues/126/events","html_url":"https://github.com/rstats-db/RSQLite/issues/126","id":121782954,"number":126,"title":"dbWriteTable fails with tbl_df","user":{"login":"mplourde","id":1331193,"avatar_url":"https://avatars.githubusercontent.com/u/1331193?v=3","gravatar_id":"","url":"https://api.github.com/users/mplourde","html_url":"https://github.com/mplourde","followers_url":"https://api.github.com/users/mplourde/followers","following_url":"https://api.github.com/users/mplourde/following{/other_user}","gists_url":"https://api.github.com/users/mplourde/gists{/gist_id}","starred_url":"https://api.github.com/users/mplourde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mplourde/subscriptions","organizations_url":"https://api.github.com/users/mplourde/orgs","repos_url":"https://api.github.com/users/mplourde/repos","events_url":"https://api.github.com/users/mplourde/events{/privacy}","received_events_url":"https://api.github.com/users/mplourde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-11T20:09:26Z","updated_at":"2015-12-11T20:09:26Z","closed_at":null,"body":"\r\n```r\r\npackageVersion('DBI')\r\n# [1] '0.3.1.9008'\r\npackageVersion('RSQLite')\r\n# [1] '1.0.9000'\r\npackageVersion('dplyr')\r\n# [1] '0.4.3'\r\n\r\nlibrary(RSQLite)\r\nlibrary(dplyr)\r\n\r\ntest <- data_frame(a=1)\r\ncnxn <- dbConnect(SQLite(), 'test.db') # :memory: doesn't seem to work with this build\r\n\r\ndbWriteTable(cnxn, 'test', test)\r\n# Error in (function (classes, fdef, mtable)  : \r\n#  unable to find an inherited method for function 'dbWriteTable' for signature '\"SQLiteConnection\", \"character\", \"tbl_df\"'\r\n\r\ndbWriteTable(cnxn, 'test', as.data.frame(test))\r\n# [1] TRUE\r\n\r\nunlink('test.db')\r\n```\r\n"}}