【发布时间】:2013-10-29 15:11:57
【问题描述】:
我在我的函数中使用RPostgreSQL 和sqldf,如下所示:
MyFunction <- function(Connection) {
options(sqldf.RPostgreSQL.user = Connection[1],
sqldf.RPostgreSQL.password = Connection[2],
sqldf.RPostgreSQL.dbname = Connection[3],
sqldf.RPostgreSQL.host = Connection[4],
sqldf.RPostgreSQL.port = Connection[5])
# ... some sqldf() stuff
}
如何测试连接是否有效?
【问题讨论】:
标签: r sqldf rpostgresql