Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘dbWriteTable’ for signature ‘"SQLiteConnection", "character", "function"’ #110

Open
camilayedid1910 opened this issue Apr 16, 2020 · 0 comments

Comments

@camilayedid1910
Copy link

Hi,

I don't know what it is wrong with my coding. Can anybody help me? :)

title: "Designing and Creating a Database (Intermediate SQL in R): Guided Project Solutions"
output: html_notebook

Download packages

library(tidyverse)
library(RSQLite)
library(DBI)

Importing to SQLite

conn <- dbConnect(SQLite(), "mlb.db")
dbWriteTable(conn = conn, name = "person_codes", 
             value = person, row.names = FALSE, header = TRUE)
dbWriteTable(conn = conn, name = "team_codes", 
             value = team, row.names = FALSE, header = TRUE)
dbWriteTable(conn = conn, name = "park_codes", 
             value = park, row.names = FALSE, header = TRUE)

### **It returns: Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘dbWriteTable’ for signature ‘"SQLiteConnection", "character", "function"’**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant