It looks like the package has been removed from CRAN: https://cran.r-project.org/web/packages/surface/index.html
You can still install a version of the package, but note that it does not seem to be maintained anymore -- it was last updated in 2014, so you might want to find another package that has similar functionality to what you need from surface.
remotes::install_version("surface", "0.4-1")