-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install_github
with non-default host broken: "attempt to set an attribute on NULL"
#396
Comments
The error message is caused by
Emphasis mine. With my attempt to fix this applied (#413), we now get remotes::install_github(
repo = "loosolab/MARMoSET", host = "github.molgen.mpg.de/api/v3"
)
#> Error: Failed to install 'unknown package' from GitHub:
#> HTTP error 401.
#> Bad credentials This is because Unfortunately remotes::install_github(
repo = "loosolab/MARMoSET", host = "github.molgen.mpg.de/api/v3",
auth_token = NULL
)
#> Error: Failed to install 'unknown package' from GitHub:
#> HTTP error 401.
#> Bad credentials This is because Since @jimhester deliberately set For now, a workaround for this particular case is: Sys.unsetenv("GITHUB_PAT")
remotes::install_github(
repo = "loosolab/MARMoSET", host = "github.molgen.mpg.de/api/v3"
) |
I encountered a similar problem: Somehow I think the PATs have to be linked to the corresponding host:
|
Fixed by #413 |
Consider the following:
This fails with the error:
This happens both with the current cran version and after invoking
remotes::install_github("r-lib/remotes")
.The text was updated successfully, but these errors were encountered: