The SpatialML package in R has been update! Check it out https://CRAN.R-project.org/package=SpatialML!