How to view the output of a shapefile in R

I would like to know how to view the output of a shapefile (shp) in R. The file can be found by this link: https://encurtador.com.br/ivKS2

In this file is the Brazilian pipeline, but I would like to check how I can visualize this.

I did as follows:

library(rgdal)
library(sf)

temp <- tempfile()
temp2 <- tempfile()
download.file("https://encurtador.com.br/ivKS2",temp)
unzip(zipfile = temp, exdir = temp2)
shp <- sf::read_sf(temp2)

But it's going wrong.

I think you have a bad URL. I try to download and it says "folder is empty."

Please, try @rccline :

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.