Update: I have downloaded an archived version of the package from here: https://cran.r-project.org/src/contrib/Archive/biomod2/ And installed it successfully on my R through Tools>>Install Packages>>Install from package archive.