In a package DESCRIPTION file it is possible to specifiy the maximum or minimum version number.
But install_github ignores this and installs the latest cran version of any imported packages.
Reprex
remove.packages("xml2")
remotes::install_github("ITSleeds/UK2GTFS", upgrade = "never")
packageVersion("xml2")
# 1.3.1 installed but 1.2.5 expected