Turning geospatial polygons into regular or hexagonal grids. For other similar functionality see the tilemaps package https://github.com/kaerosen/tilemaps
Thanks for the suggestions. The rep was a hangover from previous code and should have been removed. The new version uses system.file as per your suggestion.
Not sure what the
rep
is doing here:but:
will remove the "In the working directory of the package" requirement and work anywhere.