# NOT RUN {
# read spatial object
nc <- sf::st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
# create temp file
tf <- tempfile(fileext = '.feather')
on.exit(unlink(tf))
# write out object
st_write_feather(obj = nc, dsn = tf)
# In Python, read the new file with geopandas.read_feather(...)
# read back into R
nc_f <- st_read_feather(tf)
# }
Run the code above in your browser using DataLab