how can i set up the GITHUB_PAT in RSCONNECT so that {packrat} can have access to it to install from a private repo?
You can configure credentials for git in a GitCredentials
section. Please have a look at Git Backed Content - RStudio Connect: Admin Guide
The password here would be the PAT? That doesn’t seem to make sense.
[GitCredential]
Host = github.com
Username = accountName
Password = <encrypted-string>
Protocol = https
Why do you think this does not make sense to use a PAT instead of a password? That's what a PAT is used for:
Personal access tokens (PATs) are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line.
OK. So if i have a PAT there can I install a private GH repo that is listed in the manifest?
Im sorry I missed that you were asking about private package installation. The GitCredential
I was referring to is for git-backed deployment, not for package installation from a private git repo. For that we generally suggest using RStudio Package Manager.
So it is not possible to install private repos directly from GH on RSC?
There is a workaround, c.f. Package Management - RStudio Connect: Admin Guide. But Package Manager is the better solution to this problem.
thanks for the references. closing issue.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.