Skip to content
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 error unclear when DESCRIPTION references private package #715

Open
aronatkins opened this issue Jul 28, 2022 · 2 comments
Open
Labels
bug an unexpected problem or unintended behavior

Comments

@aronatkins
Copy link

Using remotes-2.4.2

remotes::install_github("rstudio/bslib@dev")

The DESCRIPTION contains:

Remotes:
    rstudio/bsicons

Unfortunately, rstudio/bsicons is a private repository.

The error from remotes::install_github:

Downloading GitHub repo rstudio/bslib@dev
Error: Failed to install 'bslib' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`rstudio`) and repo name (`bsicons`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

This error does not indicate at all that the problem is with the data associated with rstudio/bslib. It is true that the user does not have permission to access the bsicons repository. Could remotes indicate more clearly that the problem is with a package referenced by bslib?

@gaborcsardi
Copy link
Member

Yeah, that would make sense indeed.

@aronatkins
Copy link
Author

Note: The bsicons repo is now public, so this particular combination no longer presents the same error.

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants