Im trying to connect postgres with dplyr functions
my_db <- src_postgres(dbname = \'mdb1252\', user = \"diego\", password = \"pass\") my_db src: postgres 9.2
If anybody ends up here with the same problem, here is what works for me: (taken from @Diego's comment from Feb 6'14)
postgre_table <- function (src, schema, table) { paste('SELECT * FROM', paste(schema, table, sep = '.')) %>% sql() %>% tbl(src = src) }