UKHSA-Internal / coronavirus-dashboard-api-R-sdk

Coronavirus (COVID-19) in the UK - API Service SDK for R
https://coronavirus.data.gov.uk/
Other
26 stars 4 forks source link

Problems with remote install on rocker image / not on CRAN #6

Open silverfoxdoc opened 2 years ago

silverfoxdoc commented 2 years ago

Despite README saying this is on CRAN, I cannot find it. Are there plans to submit it as having terrible problems trying to remote install on a rocker pipeeline image on GitLab.

I have been able to install the API and sucessfully use it on my local machine with no problem. However, when I try to install it on the rocker image I get the following message:

> 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 'https://api.github.com/repos/publichealthengland/coronavirus-dashboard-api-R-sdk/contents/DESCRIPTION?ref=HEAD'
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": "https://docs.github.com/v3/repos/contents/"
}

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. https://github.com/r-lib/remotes/issues/508

Not too sure how to problem solve this further so any pointers or a look into why it is isn't working would be very welcome.