Unable to connect R to MonetDB (MonetDB.R)

心已入冬 提交于 2020-01-04 19:17:21

问题


I'm trying to start with the MonetDB.R package but I struggle to setup a connection (dbConnect). Here is a reproductible example

require(MonetDB.R)
drv <- dbDriver('MonetDB.R')
con <- dbConnect(drv, 'monetdb://localhost/demo')
## Process R aborted (core dumped) at Thu Dec 26 11:03:47 2013
## R: mapi.c:72: mapiConnect: Assertion `Rf_isInteger(port)' failed.

Is there any trick to fix this error ?

I'm using the developpement version of MonetDB (Database: MonetDB v11.18.0 (unreleased)) , the latest version of R (beta build, see sessionInfo below) and Arch Linux (64 bit, kernel 3.12.5-1)

## R version 3.0.2 Patched (2013-12-23 r64506)
## Platform: x86_64-unknown-linux-gnu (64-bit)

## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods  
## [7] base     

## other attached packages:
## [1] MonetDB.R_0.8.1 digest_0.6.4    DBI_0.2-7      

## loaded via a namespace (and not attached):
## [1] compiler_3.0.2 tools_3.0.2

Thanks


回答1:


The reported problems are known and fixed in version 0.8.3 (and above) of the connector, which is available from CRAN.

Best, Hannes (Maintainer of MonetDB.R)



来源:https://stackoverflow.com/questions/20783829/unable-to-connect-r-to-monetdb-monetdb-r

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