pak icon indicating copy to clipboard operation
pak copied to clipboard

Specifying GitHub host in `pak()`

Open malcolmbarrett opened this issue 2 years ago • 3 comments

I'm not quite sure if this is a question or a feature request, but I don't see any way of using a GitHub Enterprise host for pak() in the same way that you can with install_github()'s host or gh's GITHUB_API_URL env var. Is that currently possible? If it is currently possible, I'd be happy to add a bit of documentation on the process

malcolmbarrett avatar Jan 27 '22 16:01 malcolmbarrett

Try specifying the full URL of the repo.

gaborcsardi avatar Jan 27 '22 16:01 gaborcsardi

Hm that doesn't work, saying that the GitHub credentials are bad. Is it possible pak isn't looking/doesn't know to look in the same spot as gitcreds::gitcreds_get("https://github.some-hostname.com")?

malcolmbarrett avatar Jan 27 '22 17:01 malcolmbarrett

+1 for this comment, @malcolmbarrett. This point on GitHub credentials certainly resonates with me.

Specifically, the issue is holding back the use of GitHub Actions in my corporate setting (and, given similar questions on RStudio Community and Stack Overflow, other such settings). For context, all our internal packages are on GitHub (Enterprise) and can be individually installed using a combination of remotes and gitcreds.

Overcoming this issue would make an enormous difference to our workflows! Thanks for all the GitHub Actions and pak goodness.

p0bs avatar Jun 28 '22 10:06 p0bs