##---- Should be DIRECTLY executable !! ----##-- ==> Define data, use random,##-- or do help(data=index) for the standard data sets.## The function is currently defined asfunction (points){distances<-1/st_distance(points)distances[distances==Inf]=0return(distances)}