I am trying to create an excel file, ready for use within Power Apps Geospatial features: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/geospatial-map-draw-shapes#import-geojson-shapes-into-a-map
This needs a single excel file, where each row is a seperate feature, which has a GeoJSON column which is a self contained GeoJSON object.
I can't work out how to do this using R and R Studio. My input file is a GeoJSON, but could be a shapefile.
I have tried a number of methods, but on each occasion I am tripping up with trying to get the features to export
I do not have access to Power Apps Geospatial so I can't test the end result but this:
is giving a similar result to your link.
"Bonus" (from a geojson):