greenplum-db / PivotalR-archive

An convenient R tool for manipulating tables in PostgreSQL type databases and a wrapper of Apache MADlib.
https://pivotalsoftware.github.io/gp-r/
125 stars 53 forks source link

Avoid attaching RPostgreSQL to connect to database #49

Open iyerr3 opened 7 years ago

iyerr3 commented 7 years ago

File R/db_conn-generic.R has line eval(parse(text = paste("suppressMessages(library(", conn.pkg, "))"))),

where conn.pkg can currently only be RPostgreSQL. This pollutes the namespace by attaching all objects from RPostgreSQL. We should avoid this by using the scope operator :: instead of attaching the objects.