Create a connection to a DBMS in R

我的未来我决定 提交于 2019-12-24 12:23:36

问题


I'm using the libraries DBI to create a connection to a monetdblite database in R but I keep getting the same error. Here is the reproducible example and the error message I get. Any ideas on how to solve this ?

# Load Packages
  library(MonetDB.R)
  library(MonetDBLite)
  library(survey)
  library(DBI)

# Load Data
  data(api)


# create survey design
  dclus1 <- svydesign(id=~dnum, weights=~pw, data=apiclus1, fpc=~fpc)

# create Temp dir.
  dbfolder <- tempdir()

# create connection
  db <- dbConnect( MonetDBLite() , dbfolder )

Error in MonetDBLite::monetdb_embedded_startup(embedded, !getOption("monetdb.debug.embedded", : unused argument (getOption("monetdb.sequential", TRUE))

As additional info, I'm using:

  • R 3.2.4revised
  • latest Rstudio 0.99.893
  • Windows 10

回答1:


please update your MonetDB.R and MonetDBLite packages, there has been a recent API change

install.packages(c("MonetDB.R", "MonetDBLite"), 
  repos=c("https://dev.monetdb.org/Assets/R/", "http://cran.rstudio.com/"))


来源:https://stackoverflow.com/questions/36175255/create-a-connection-to-a-dbms-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!