Lightweight wrappers for calling into the C++ backend plus helper utilities reused throughout the package.
Usage
.call(fn_name, ...)
.expand(...)
.set_dim(x, dim)
.polygonize(x)
.rast_tmpl(x)
.modify_list(x, y)Functions
.call(fn_name, ...)Executes the registered C++ symbol via.Calland wraps errors with friendly messages..expand(...)A thin wrapper aroundexpand.grid()that drops row attributes and prevents factor coercion..set_dim(x, dim)Re-shapesxby delegating to thesnic_set_dimnative routine..polygonize(x)Converts a segmentation raster into polygons..rast_tmpl(x)Builds an emptyterra::rast()template matching the array's footprint..modify_list(x, y)Modifies x list using named entries from y