I've been working with the R library alphahull for a few days now.
As I'm trying to get the results as sf polygons, I'm following the recommandation here to use ahull_track, as that returns geom_path objects.
However, when I try it, I run into this issue:
Error in psp(dat[-np, 1], dat[-np, 2], dat[-1, 1], dat[-1, 2], window = owin(range(dat[, :
could not find function "psp"
I did look at the code of function itself on Github, and indeed I see it calls psp on line 8, but without any reference as to which library it shouls be loaded from.
Anyone knows what I missed?
After trying out one by one the different libraries mentioned in the documentation's Import (see below), I found out what I was missing.
It turned out to be
spatstat.Strange that calling
require(alphahull)doesn't automatically callrequire(spatstat).