One of modelR depences, rgeos package, is not availabel for lastest R version, such 4.5's versions. Maybe to current rgdal availability?
Maybe it can be fixed by replacing rgeos and other rgdal packages to most current geospatial packages, such as terra and geosphere. but, currently, it's not possible to download modelR to lastest R versions.