Just replaced the calls to sp-functions with sf-functions. Tried to change as little as possible.
This pull request builds on the changes in #5 and thus appears larger than it actually is.
I created testthat unit test for all functions doing geo processing to ensure identical result after conversion.
The transformation of an sf-object to owin leads to a different order of tiles and subsequentially to different sample points due to a different state of the RNG. Thus I took a detour over SpatialPolygons to owin to make the unit test happy. This should be cut out later.
Just replaced the calls to
sp
-functions withsf
-functions. Tried to change as little as possible.This pull request builds on the changes in #5 and thus appears larger than it actually is.
I created testthat unit test for all functions doing geo processing to ensure identical result after conversion.
The transformation of an
sf
-object toowin
leads to a different order of tiles and subsequentially to different sample points due to a different state of the RNG. Thus I took a detour overSpatialPolygons
toowin
to make the unit test happy. This should be cut out later.