The cran github repo holds the last version of cran package to easily look at their source code.
It means you can (and I guess should...) install with remotes::install_cran("rgeos") - you'll get the same version.
I don't think the cran repo is made for installing cran
with install_github. There may be something missing.
What is the reason to install from github and not from cran directly ?