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

Error in utils::download.file(url, path, method = method, quiet = quiet, : Can not open URL'https://api.github.com/repos/jzsbioinfo/APRD/tarball/master' #2303

Closed
jzsbioinfo opened this issue Dec 13, 2020 · 4 comments

Comments

@jzsbioinfo
Copy link

I can not install package through devtools::install_github("jzsbioinfo/APRD").

My session info:
─ Session info ────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.6.2 (2019-12-12)
os Windows 10 x64
system x86_64, mingw32
ui RStudio
language (EN)

Methods I have tried but doesn't work:
options(download.file.method = "libcurl") devtools::install_github("jzsbioinfo/APRD")

options(download.file.method = "wininet") devtools::install_github("jzsbioinfo/APRD")

@jennybc
Copy link
Member

jennybc commented Dec 13, 2020

I suspect this is a master vs. main problem (name of default branch), which suggests you should probably update the remotes package (which is what actually powers devtools::install_github()).

install.packages("remotes")

@jzsbioinfo
Copy link
Author

I updated all related packages (devtools, remotes), then the problem solved. Thanks so much.

@NathanSkene
Copy link

I've got the same issue. Tried install.packages("remotes") but that has not resolved it for me.

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

Random number generation:
 RNG:     Mersenne-Twister
 Normal:  Inversion
 Sample:  Rounding

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] colorout_1.2-2

loaded via a namespace (and not attached):
 [1] magrittr_2.0.1      usethis_2.0.0       BiocGenerics_0.36.0
 [4] devtools_2.3.2      pkgload_1.1.0       gert_1.0.2
 [7] R6_2.5.0            rlang_0.4.10        fansi_0.4.1
[10] tools_4.0.3         sys_3.4             pkgbuild_1.2.0
[13] parallel_4.0.3      sessioninfo_1.1.1   cli_2.2.0
[16] withr_2.3.0         remotes_2.2.0       askpass_1.1
[19] ellipsis_0.3.1      rprojroot_2.0.2     openssl_1.4.3
[22] assertthat_0.2.1    digest_0.6.27       tibble_3.0.4
[25] lifecycle_0.2.0     crayon_1.3.4        processx_3.4.5
[28] callr_3.5.1         purrr_0.3.4         ps_1.5.0
[31] vctrs_0.3.6         fs_1.5.0            credentials_1.3.0
[34] curl_4.3            testthat_3.0.1      memoise_1.1.0
[37] glue_1.4.2          compiler_4.0.3      pillar_1.4.7
[40] desc_1.2.0          prettyunits_1.1.1   pkgconfig_2.0.3

@saddam017
Copy link

I updated all related packages (devtools, remotes), still got error:

remotes::install_github('satijalab/seurat-wrappers')
Downloading GitHub repo satijalab/seurat-wrappers@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/satijalab/seurat-wrappers/tarball/HEAD' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants