ropensci / rnaturalearthhires

high resolution naturalearth data for rnaturalearth
https://docs.ropensci.org/rnaturalearthhires
24 stars 14 forks source link

Installation failure #10

Closed grwhumphries closed 2 months ago

grwhumphries commented 1 year ago

Hi there

In an attempt to install via: install_github("ropensci/rnaturalearthhires") I received a strange generic error:

Downloading GitHub repo ropensci/rnaturalearthhires@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/ropensci/rnaturalearthhires/tarball/HEAD' failed

Not sure what's going on there. Any help would be appreciated

PMassicotte commented 1 year ago

Humm, works fine on my side:

r$> remotes::install_github("ropensci/rnaturalearthhires")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo ropensci/rnaturalearthhires@HEAD
── R CMD build ───────────────────────────────────────────────────
   checking for file ‘/tmp/RtmpcKccV6/remotes1a5d425fe429aa/ropens✔  checking for file ‘/tmp/RtmpcKccV6/remotes1a5d425fe429aa/ropensci-rnaturalearthhires-ad7cae3/DESCRIPTION’
─  preparing ‘rnaturalearthhires’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘rnaturalearthhires_0.2.1.tar.gz’

Installing package into ‘/home/filoche/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package ‘rnaturalearthhires’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (rnaturalearthhires)
grwhumphries commented 1 year ago

Really strange. I'm unable to download it using either remotes or devtools. For now I'll download the zip and install it that way. I'll do some playing around and see if I can't figure it out.

here's my sessioninfo in case it's useful to someone:

R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

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

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

other attached packages:
 [1] hrbrthemes_0.8.0    ggthemes_4.2.4      marmap_1.0.9        plotdap_1.0.1       forcats_0.5.2       stringr_1.5.0      
 [7] dplyr_1.1.0         purrr_1.0.1         readr_2.1.3         tidyr_1.3.0         tibble_3.1.8        ggplot2_3.4.0      
[13] tidyverse_1.3.2     rnaturalearth_0.3.2

loaded via a namespace (and not attached):
  [1] googledrive_2.0.0       colorspace_2.0-3        ellipsis_0.3.2          class_7.3-20            rgdal_1.6-4            
  [6] fs_1.5.2                httpcode_0.3.0          rstudioapi_0.14         proxy_0.4-27            farver_2.1.1           
 [11] remotes_2.4.2           bit64_4.0.5             fansi_1.0.3             lubridate_1.9.0         xml2_1.3.3             
 [16] codetools_0.2-18        extrafont_0.18          ncdf4_1.21              cachem_1.0.6            knitr_1.40             
 [21] pkgload_1.3.1           jsonlite_1.8.3          Rttf2pt1_1.3.8          broom_1.0.1             dbplyr_2.3.1           
 [26] shiny_1.7.3             hoardr_0.5.3            compiler_4.2.1          httr_1.4.4              backports_1.4.1        
 [31] Matrix_1.5-3            fastmap_1.1.0           lazyeval_0.2.2          gargle_1.2.1            cli_3.4.1              
 [36] later_1.3.0             htmltools_0.5.3         prettyunits_1.1.1       tools_4.2.1             igraph_1.3.5           
 [41] gtable_0.3.1            glue_1.6.2              rnaturalearthdata_0.1.0 reshape2_1.4.4          maps_3.4.1             
 [46] rappdirs_0.3.3          Rcpp_1.0.9              cellranger_1.1.0        raster_3.6-3            vctrs_0.5.2            
 [51] crul_1.3                extrafontdb_1.0         xfun_0.34               ps_1.7.2                rvest_1.0.3            
 [56] timechange_0.1.1        mime_0.12               miniUI_0.1.1.1          lifecycle_1.0.3         devtools_2.4.5         
 [61] googlesheets4_1.0.1     terra_1.6-17            scales_1.2.1            hms_1.1.2               promises_1.2.0.1       
 [66] dssd_1.0.0              curl_4.3.3              memoise_2.0.1           gdtools_0.2.4           stringi_1.7.8          
 [71] RSQLite_2.3.0           e1071_1.7-12            pkgbuild_1.3.1          shape_1.4.6             systemfonts_1.0.4      
 [76] rlang_1.0.6             pkgconfig_2.0.3         rerddap_1.0.2           evaluate_0.18           lattice_0.20-45        
 [81] sf_1.0-9                labeling_0.4.2          htmlwidgets_1.5.4       bit_4.0.4               tidyselect_1.2.0       
 [86] processx_3.8.0          plyr_1.8.8              magrittr_2.0.3          R6_2.5.1                generics_0.1.3         
 [91] profvis_0.3.7           DBI_1.1.3               pillar_1.8.1            haven_2.5.1             withr_2.5.0            
 [96] units_0.8-0             sp_1.5-1                modelr_0.1.10           crayon_1.5.2            KernSmooth_2.23-20     
[101] utf8_1.2.2              rmarkdown_2.18          tzdb_0.3.0              urlchecker_1.0.1        usethis_2.1.6          
[106] isoband_0.2.6           grid_4.2.1              readxl_1.4.1            data.table_1.14.4       blob_1.2.3             
[111] callr_3.7.3             reprex_2.0.2            digest_0.6.30           classInt_0.4-8          xtable_1.8-4           
[116] gdistance_1.6           adehabitatMA_0.3.15     httpuv_1.6.6            munsell_0.5.0           sessioninfo_1.2.2  
PMassicotte commented 2 months ago

@grwhumphries have you found a solution? Is this issue still relevant?

PMassicotte commented 2 months ago

This seems to be working:

[ins] r$> devtools::install_github("ropensci/rnaturalearthhires", force = T)
Using github PAT from envvar GITHUB_PAT. Use `gitcreds::gitcreds_set()` and unset GITHUB_PAT in .Renviron (or elsewhere) if you want to use the more secure git credential store instead.
Downloading GitHub repo ropensci/rnaturalearthhires@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/tmp/Rtmpu1N8tC/remotes7945f64281af8/ropensci-rnaturalearthhires-dd1e210/DESCRIPTION’ ...
─  preparing ‘rnaturalearthhires’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘rnaturalearthhires_1.0.0.9000.tar.gz’

Installing package into ‘/home/filoche/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
* installing *source* package ‘rnaturalearthhires’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (rnaturalearthhires)
Adding ‘rnaturalearthhires_1.0.0.9000_R_x86_64-pc-linux-gnu.tar.gz’ to the cache
grwhumphries commented 2 months ago

@PMassicotte - seems to be working now - I should have closed this issue but got buried with other stuff. I've moved to R 4.3