Вопрос

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

Это было полезно?

Решение

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)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top