jbaileyh / geogrid

Turning geospatial polygons into regular or hexagonal grids. For other similar functionality see the tilemaps package https://github.com/kaerosen/tilemaps
Other
395 stars 31 forks source link

Get path to test data using system.file #2

Closed barryrowlingson closed 7 years ago

barryrowlingson commented 7 years ago

Not sure what the rep is doing here:

#In the working directory of the package.
input_file <- rep("inst/extdata/london_LA.json")

but:

input_file = system.file("inst/extdata/london_LA.json",package="hexmapr")

will remove the "In the working directory of the package" requirement and work anywhere.

sassalley commented 7 years ago

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.