Open
Description
When installing a package from GitHub with r-packages in a devcontainer, the GitHub credentials, stored in the Git Credential Manager for Windows with {gitcreds}, are not available.
With the following devcontainer.json
I see the following line in the devcontainer build log scrolling by:
=> => # ! Using bundled GitHub PAT. Please add your own PAT using `gitcreds::gitcreds_set()`.
As a consequence it is not possible to install packages from private repos on GitHub.
I don't know whether this can be fixed, i.e. whether the credentials can be made available during the container build, or whether a line about this in the documentation has to suffice.
A workaround is to install GitHub packages (from private repos) in the postCreateCommand
stage:
"postCreateCommand": "R -q -e 'pak::pak(\"r-lib/crayon\")'"
Session
VS Code 1.84.2
Docker Desktop 4.25.1 (128006)
Windows 11 (10.0.22631)
Metadata
Metadata
Assignees
Labels
No labels