Im using leaflet to make maps with layers including the very large Great Barrier Reef zoning shapefile (i.e., a large SpatialPolygonsDataFrame);
https://eatlas.org.au/data/uuid/92e4a530-6cbc-456b-918d-55d97c610e01
I worked out how to edit the shapefile by adding columns representing zoning colours to fill polygons (fillColor) and after a number of nights staring at the ceiling (from about 3am) I found a way to subset the data down to a region of interest (and reduce the file size and therefore, html loading time).
However, I have not found a way to save the new shapefile in a format that can be read by shapefile() then sptransform()? If I save this in .R format it is not then recognised as a shapefile, or am I missing something?