na.rm: logical; should missing valued cells be removed, or also be converted to features?
contour_lines: logical; if FALSE, polygons are returned (contour sets), otherwise contour lines
breaks: numerical; values at which to "draw" contour levels
Details
this function requires GDAL >= 2.4.0
See Also
for polygonizing rasters following grid boundaries, see st_as_sf with arguments as_points=FALSE and merge=TRUE; contour plots contour lines using R's native algorithm (which also plots contour levels)