Hello Community! New to R and need assistance on Error

I just purchased this book called R for Marketing Research and Analytics.

One of the first scripts it asks me to run is:

satData <- read.csv("http://goo.gl/UDv12g")
satData$Segment <- factor(satData$Segment)
head(satData)

I am receiving the follow error after running the first line:

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
InternetOpenUrl failed: 'A redirect request will change a non-secure to a secure connection'

Could someone please explain to this dummy this error in terms I, a novice, could understand.

This code does work for me, so check your connection. Also, try changing this line:

satData <- read.csv("http://goo.gl/UDv12g")

to

satData <- read.csv("https://goo.gl/UDv12g")

satData <- read.csv("https://goo.gl/UDv12g")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
InternetOpenUrl failed: 'A redirect request will change a secure to a non-secure connection'
satData <- read.csv("http://goo.gl/UDv12g")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
InternetOpenUrl failed: 'A redirect request will change a non-secure to a secure connection'

---Still did not work for me. What could be wrong with my connection?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.