Re: [R] rpy2 postgres qgis problem

2013-05-01 Thread Enzo Cocca
Thanks Michael! I solved using the form Pyper example: def on_calcola_pressed (self): # bottone per calcoli statistici from pyper import * r = R() r('library(RPostgreSQL)') r('drv <- dbDriver("PostgreSQL")') r('con <- dbConnect(drv, host="127.0.0.1", dbname="pyarchinit", port="5432"

Re: [R] rpy2 postgres qgis problem

2013-05-01 Thread R. Michael Weylandt
On Wed, May 1, 2013 at 3:05 PM, Enzo Cocca wrote: > Hello every body, > I am using rpy2_2.0.8 with postgres and Qgis. > The code that I wrote is the following: > > def on_calcola_pressed (self): > # bottone per calcoli statistici > import rpy2 > imp

[R] rpy2 postgres qgis problem

2013-05-01 Thread Enzo Cocca
Hello every body, I am using rpy2_2.0.8 with postgres and Qgis. The code that I wrote is the following: def on_calcola_pressed (self): # bottone per calcoli statistici import rpy2 import rpy2.robjects as robjects import rpy2.robjects