Using R version 4.3.2 & spNetwork_0.4.4.5, but I figured out the reason by looking at your current code here on github. snapPointsToLines2() includes snap_dist and max_iter as arguments but does not use them within the body of the function, so there is no way to limit the snapping distance. Easy enough to add a fix or remove from the arguments.