## the JDBC URL can be found in Amazon's AWS Control Panel, just copy and paste it into here
#conn <- redshift.connect("jdbc:postgresql://blah.blah.eu-west-1.redshift.amazonaws.com:5439/data", "username", "password")
## list the names of the tables we can query
#tables <- redshift.tables(conn)
Run the code above in your browser using DataLab