首先,确保你已经生成了一个GitHub Personal Access Token(PAT)。这个Token可以在GitHub的设置页面生成,并确保它拥有足够的权限(如repo权限)来访问和安装GitHub上的包。 在R中,你可以使用以下代码来设置环境变量GITHUB_TOKEN: R Sys.setenv(GITHUB_TOKEN = "你的GitHub PAT") 替换"你的GitHub PAT"为你的实际Token。
> remotes::install_github('evwalz/uroc') Using bundled GitHub PAT. Please add your own PAT to the env var `GITHUB_PAT` Error: Failed to install 'unknown package' from GitHub: HTTP error 401. Bad credentials Rate limit remaining: 57/60 Rate limit reset at: 2021-10-17 13:31:06 UTC...
Using github PAT from envvar GITHUB_PAT 错误: Failed to install 'unknown package' from GitHub: Timeout was reached: [api.github.com] Resolving timed out after 10000 millisecondsscibrokes/setup-centOS7-DO#3 Closed Assignees No one assigned ...
Setting environment variables from repository settings $ export GITHUB_PAT=[secure] $ Rscript -e 'devtools::install_github("stephlocke/tfsR",dependencies=TRUE)' Using GitHub PAT from envvar GITHUB_PAT SearchFacebook Google+ Twitter Reddit LinkedIn StumbleUpon ...
Downloading from private repos or uploading to any repo requires authentication, specifically a GitHub Personal Access Token (PAT). This can be stored as agh::gh_token()or a GITHUB_PAT environment variable - for more information, see the vignette notes onauthentication. ...