Cannot install remote repository in rocker container

I am trying to extend my R skills and start using CI/CD to automatically update plots on a daily basis. I have an R script to generate an UK COVID data graph plotting several different metrics. It uses the Public Health England (PHE) COVID API, which despite the github page saying it is on CRAN it is not [GitHub - publichealthengland/coronavirus-dashboard-api-R-sdk: Coronavirus (COVID-19) in the UK - API Service SDK for R] and I don’t hold out much hope of it being submitted to CRAN unfortunately.

So on my local machine I have simply installed it from the PHE github repo and everything works fine, however on the rocker pipeline image I get the following error:

> remotes::install_github("publichealthengland/coronavirus-dashboard-api-R-sdk")
Using bundled GitHub PAT. Please add your own PAT to the env var `GITHUB_PAT`
Error: Failed to install 'unknown package' from GitHub:
  cannot open URL ''
Execution halted
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1

Clicking on the URL it is attempting to open gives the following error:

  "message": "No commit found for the ref HEAD'",
  "documentation_url": ""

The only thread I have found about this error is on github suggesting it may be because default branch is not called master but as far as I can tell it is called master. Add support for alternative default branches in GitHub · Issue #508 · r-lib/remotes · GitHub

Not too sure how to problem solve this further so any pointers would be very welcome.

Hi @ollielloyd
I am not sure this is the right place for R related questions. You might find help on some forum for R language.

Thanks @balonik. I’ll try elsewhere but leave this up for the moment just in case anyone sees it and can help.