I cannot connect postgresql schema.table with dplyr package

后端 未结 3 1141
陌清茗
陌清茗 2021-02-01 06:04

Im trying to connect postgres with dplyr functions

my_db <- src_postgres(dbname = \'mdb1252\', user = \"diego\", password = \"pass\")
my_db
src:  postgres 9.2         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 06:39

    You might want this,

    db=src_postgres(dbname = 'mdb1252',  
                   user = "diego", password = "pass", options="-c search_path=mortalidad")
    

提交回复
热议问题