worldbank / wbgviz

Several R packages for World Bank-standard visualisations, building on ggplot2
MIT License
30 stars 12 forks source link

wbgdata fails to install on Linux distributions #36

Closed Nenuial closed 3 years ago

Nenuial commented 3 years ago

Something goes wrong when wbgdata is installed on Linux distributions:

Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘wbgdata’ ...
** using staged installation
** R
** 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
Warning in get_wbcache() :
  Countries/series cache is stale - use refresh_wbcache() to update.
Error: package or namespace load failed for ‘wbgdata’:
 .onLoad failed in loadNamespace() for 'wbgdata', details:
  call: NULL
  error: Can't subset columns that don't exist.
✖ Column `regionID` doesn't exist.
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/wbgdata’
Nenuial commented 3 years ago

Tried fixing it in #37

tonyfujs commented 3 years ago

Thanks @Nenuial This package was developed to support the creation of the SDG Atlas 2018, and is not actively maintained.

The issue you are experiencing seems to be related to the wbstats package. wbstats v 1.0.1 introduced some breaking changes, and wbgviz has not been updated accordingly.

Using a previous version of wbstats should allow you to use wbgviz without problem.

Nenuial commented 3 years ago

Thanks for these infos, I will change my scripts to use wbstats from now on.