R tricks >

Convert sf geometries to WKT

library(rnaturalearth)
library(sf)

df <- ne_countries(returnclass = "sf")
st_as_text(df$geometry)