thackl / gggenomes

A grammar of graphics for comparative genomics
https://thackl.github.io/gggenomes/
Other
579 stars 64 forks source link

Errror while installing #136

Closed ChongLC closed 1 year ago

ChongLC commented 1 year ago

Dear developer,

I was trying to install gggenomes on my own laptop (Windows, RStudio version - R-4.2.0). However, it failed with the error message below:

Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/thackl/gggenomes/tarball/HEAD' failed

The code that I used for installing, which is similar to the provided one:-

# Installation of gggenomes
# install ggtree
# https://bioconductor.org/packages/release/bioc/html/ggtree.html
if (!requireNamespace("BiocManager", quietly = TRUE))
  install.packages("BiocManager")
BiocManager::install("ggtree")

# install.packages("devtools")
devtools::install_github("thackl/thacklr")
devtools::install_github("thackl/gggenomes")

I used the same method to install through the RStudio cloud, it was a success. Do you have any idea why is it so?

More details of my laptop's RStudio:

R.Version()


$platform
[1] "x86_64-w64-mingw32"

$arch [1] "x86_64"

$os [1] "mingw32"

$crt [1] "ucrt"

$system [1] "x86_64, mingw32"

$status [1] ""

$major [1] "4"

$minor [1] "2.0"

$year [1] "2022"

$month [1] "04"

$day [1] "22"

$svn rev [1] "82229"

$language [1] "R"

$version.string [1] "R version 4.2.0 (2022-04-22 ucrt)"

$nickname [1] "Vigorous Calisthenics"


> sessionInfo()

R version 4.2.0 (2022-04-22 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 [4] LC_NUMERIC=C LC_TIME=English_United States.utf8

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

loaded via a namespace (and not attached): [1] Rcpp_1.0.9 compiler_4.2.0 later_1.3.0 BiocManager_1.30.19 urlchecker_1.0.1 prettyunits_1.1.1 profvis_0.3.7
[8] remotes_2.4.2 tools_4.2.0 digest_0.6.31 pkgbuild_1.4.0 pkgload_1.3.2 memoise_2.0.1 lifecycle_1.0.3
[15] rlang_1.0.6 shiny_1.7.4 cli_3.5.0 rstudioapi_0.14 curl_4.3.3 fastmap_1.1.0 withr_2.5.0
[22] stringr_1.5.0 fs_1.5.2 htmlwidgets_1.6.0 vctrs_0.5.1 devtools_2.4.5 glue_1.6.2 R6_2.5.1
[29] processx_3.8.0 sessioninfo_1.2.2 callr_3.7.3 purrr_1.0.0 magrittr_2.0.3 ps_1.7.2 promises_1.2.0.1
[36] ellipsis_0.3.2 htmltools_0.5.4 usethis_2.1.6 mime_0.12 xtable_1.8-4 httpuv_1.6.7 stringi_1.7.8
[43] miniUI_0.1.1.1 cachem_1.0.6 crayon_1.5.2



Best regards, 
Chong
ChongLC commented 1 year ago

Dear developer,

I have solved this issue by referring to this https://github.com/forestgeo/learn/issues/102. I will then close this issue. Thank you.

Best regards, Chong