I have a problem with reading a shapefile. The code below returned the error of "could not find function "read_shape"." This used to work properly before upgrading my R/Rstudio to a newer version. Currently, I am using Version 1.1.463 of Rstudio, and R version 4.0.3.
Here is my code:
usshapefile <- "cb_2017_us_county_500k.shp"
usgeo <- read_shape(file=usshapefile, as.sf = TRUE)