strava icon indicating copy to clipboard operation
strava copied to clipboard

Installation fails - dependency on geoviz (and rgeos, rgdal)

Open quantixed opened this issue 7 months ago • 2 comments

Hello,

I have used this package in the past and it worked great. I tried to install {strava} on a new machine and ran into a problem.

ERROR: dependency ‘geoviz’ is not available for package ‘strava’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/strava’
Warning messages:
1: package ‘geoviz’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 
2: In i.p(...) :
  installation of package ‘/var/folders/wb/fgxsnwg52td7vsrwz_1zvx2m0000gq/T//Rtmp8zpl41/file87f23a97c837/strava_0.0.0.9001.tar.gz’ had non-zero exit status

It seems that {geoviz} in turn requires {rgeos} and {rgdal}, so installation fails for that too (using devtools::install_github)

Now, {rgeos} is archived on CRAN. So, I tried to grab the last available version but it wouldn't install under my version of R (system info below). I didn't investigate {rgdal}. The {rgeos} CRAN page says that packages should switch to using {sf} and {terra}.

If I'm doing something wrong, please tell me! Otherwise, would you recommend that I use the python port to escape this dependency chain?

> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

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

time zone: Europe/London
tzcode source: internal

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

loaded via a namespace (and not attached):
 [1] miniUI_0.1.1.1    compiler_4.3.2    crayon_1.5.2      promises_1.2.1    Rcpp_1.0.11       stringr_1.5.1    
 [7] callr_3.7.3       later_1.3.1       fastmap_1.1.1     mime_0.12         R6_2.5.1          curl_5.2.0       
[13] htmlwidgets_1.6.4 desc_1.4.2        profvis_0.3.8     rprojroot_2.0.3   shiny_1.7.5.1     rlang_1.1.2      
[19] cachem_1.0.8      stringi_1.8.3     httpuv_1.6.12     fs_1.6.3          pkgload_1.3.3     memoise_2.0.1    
[25] cli_3.6.2         magrittr_2.0.3    ps_1.7.5          digest_0.6.33     processx_3.8.2    rstudioapi_0.15.0
[31] xtable_1.8-4      remotes_2.4.2.1   devtools_2.4.5    lifecycle_1.0.4   prettyunits_1.2.0 vctrs_0.6.5      
[37] glue_1.6.2        urlchecker_1.0.1  sessioninfo_1.2.2 pkgbuild_1.4.2    purrr_1.0.2       usethis_2.2.2    
[43] tools_4.3.2       ellipsis_0.3.2    htmltools_0.5.7  

quantixed avatar Dec 17 '23 15:12 quantixed

Hi @quantixed, sorry about the dependency issue. This package has not been actively maintained for a while. If you are familiar with Python I would recommend using the Python version which is being actively maintained.

marcusvolz avatar Dec 31 '23 23:12 marcusvolz

Thanks for the reply. OK, will do.

If anyone is reading this and just wants to make the small multiples plots (rather than the other mapping parts). You can do it using a folder of gpx files and the two functions in R/process_data.R and R/plot_facets.R

quantixed avatar Jan 01 '24 09:01 quantixed