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"
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
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
3 matches
Mail list logo