Connecting to the PostgreSQL database on AWS

In this section, we are going to talk about how to connect a PostgreSQL database on AWS by using the RPostgreSQL library. If you don't have this library on your R environment, you can install it by using the following command: 

install.packages("RPostgreSQL")
  • Sign into your AWS account, and click Instances from the left menu, as shown in the following screenshot:

Dashboard for an RDS Instance, which is called development
  • Scroll down to the Details section and then find the endpoint:

List of details ...

Get R Web Scraping Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.