You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Artifactory repo can be used to host internally developed R packages. Packages can be installed with a command like
install.packages("foo", repos="https://our.repo/"
To install a specific version of foo from this repo, I tried
install_version("foo", "x.y.z")
but this fails with a 401 error. This seems to be related to whether GITHUB_PAT is set. I've edited the below reprex to sanitize the internal repo and package details.
remotes::install_version("foo", "x.y.z", upgrade="never")
#> Downloading package from url: https://our.repo/src/contrib/foo_x.y.z.tar.gz#> Error: Failed to install 'unknown package' from URL:#> HTTP error 401.#> Bad credentials#> #> Rate limit remaining: 47/60#> Rate limit reset at: 2020-02-28 18:40:55 UTC#> #>
Sys.unsetenv("GITHUB_PAT")
remotes::install_version("foo", "x.y.z", upgrade="never")
#> Downloading package from url: https://our.repo/src/contrib/foo_x.y.z.tar.gz#> Installing package into '/usr/local/lib/R/3.6/site-library'#> (as 'lib' is unspecified)
An Artifactory repo can be used to host internally developed R packages. Packages can be installed with a command like
To install a specific version of
foo
from this repo, I triedbut this fails with a 401 error. This seems to be related to whether
GITHUB_PAT
is set. I've edited the below reprex to sanitize the internal repo and package details.I'm using
remotes
2.1.1.Created on 2020-02-28 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: