Unable to connect

I followed all the steps on the get started page but keep getting this error and unable to get anything out:

Error in curl::curl_fetch_memory(url, handle = handle) :
Failed to connect to api.plot.ly port 443: Connection refused.

I was just testing out with their bubble map example code https://plot.ly/r/bubble-maps/. Could someone please help out? Thanks.