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
Failed to install a Github package due to metadata database update failure #609
Comments
What is |
I am checking this indeed.
Looking at how But maybe there is a built-in way to configure private CRAN-like repositories and behind authentication? |
No, there isn't currently. But we can add that, no problem. You essentially need to send an extra header? |
Technically I need to send the authentication headers yes, but this would need to be a repo-specific setting. What might be tricky is that I believe the token expires and then needs to be update by querying the authentication service. For this, one would probably need to enable specifying a repo-specific setup function that prepares the handle/headers. |
Is this a protocol with a public spec, e.g. OAuth 2.0, or something in house? |
I believe it is standard OAuth 2.0 (provided by google). pak::pkg_install('org/packageA@abcd123') I get an error about not being able to find the right version for dependency |
Can you try to create a reproducible example for this? |
@gaborcsardi Following my issue posted on
remotes
: r-lib/remotes#793Recap:
I tried it now on my private package and got an error like this (installed pak from the binary built from Github):
There is no such issue when using remotes (except for the problem of the dependency upgrade of course).
pak
from both the CRAN version and the binary version installed with the command from https://github.com/r-lib/pak?tab=readme-ov-file#pre-built-binariesPACKAGES
file this is referring to. I assume it refers to CRAN-like repo index files. I am suspecting that somehow those files are not downloaded properly, which may be linked to particularities of my setup.pkg_install()
is fetching the index files, but following up the call chain is a bit hard: looks likepak
is using packages installed in its own installation directory. 😅Isn't it using plain old
download.file()
?The text was updated successfully, but these errors were encountered: