Unable to import data using import from text(readr)

**> library(readr)

Divvy_Trips_2020_Q1 <- read_csv("https://divvy-tripdata.s3.amazonaws.com/Divvy_Trips_2020_Q1.zip")
Error: Reading from remote zip compressed files is not supported,
download the files locally first.
View(Divvy_Trips_2020_Q1)
Error in View : object 'Divvy_Trips_2020_Q1' not found
**

This is telling you what the problem is and how to solve it

I have tried that too, it just keeps loading and never imports

What specifically have you tried? What commands have you used?

You need to download the file and then use read_csv.

See Download a file

This code works for me


url <-   "https://divvy-tripdata.s3.amazonaws.com/Divvy_Trips_2020_Q1.zip"
dest <-   "~/RJunk/trip.zip"
download.file(url, dest)

require(readr)
mydat <-   read_csv("~/RJunk/trip.zip")

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.