skardhamar / rga

R Google Analytics
187 stars 90 forks source link

Unable to install: Non-zero exit status #101

Open mta614 opened 3 years ago

mta614 commented 3 years ago

When attempting to install rga, I get the following message:

Error: Failed to install 'RGA' from GitHub:
  (converted from warning) installation of package ‘C:/Users/{username}/AppData/Local/Temp/RtmpuckUH0/file4fd8c741dbf/rga_0.8.tar.gz’ had non-zero exit status

I'm an intermediate R user so I'm pretty lost on exactly what needs to happen here (I already had to delete my previous installation of mime). Here's my sessionInfo():

R version 4.0.0 (2020-04-24)
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.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

other attached packages:
[1] lubridate_1.7.9.2 stringr_1.4.0     dplyr_1.0.4       readr_1.4.0      
[5] devtools_2.3.2    usethis_2.0.0    

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        compiler_4.0.0    pillar_1.4.7      prettyunits_1.1.1
 [5] remotes_2.2.0     tools_4.0.0       testthat_3.0.1    pkgbuild_1.2.0   
 [9] pkgload_1.1.0     memoise_2.0.0     lifecycle_0.2.0   tibble_3.0.6     
[13] pkgconfig_2.0.3   rlang_0.4.10      DBI_1.1.1         cli_2.3.0        
[17] rstudioapi_0.13   curl_4.3          fastmap_1.1.0     withr_2.4.1      
[21] desc_1.2.0        generics_0.1.0    fs_1.5.0          vctrs_0.3.6      
[25] hms_1.0.0         rprojroot_2.0.2   tidyselect_1.1.0  glue_1.4.2       
[29] R6_2.5.0          processx_3.4.5    sessioninfo_1.1.1 callr_3.5.1      
[33] purrr_0.3.4       magrittr_2.0.1    ps_1.5.0          ellipsis_0.3.1   
[37] assertthat_0.2.1  stringi_1.5.3     cachem_1.0.3      crayon_1.4.0     

What's the best way to proceed here?

MarkEdmondson1234 commented 3 years ago

The library name is case sensitive - this is "rga" not "RGA". :)

mta614 commented 3 years ago

Doh. I didn't save my command history though I thought I typed 'rga' and not 'RGA' (actually pasted in the instructions directly).

Either way, grabbed your googleAnalyticsR package when I was having trouble and it's working great so my issue might just be solved by changing packages. Definitely a big fan of the anti-sampling feature.