4gh / worldbankdata.jl Goto Github PK
View Code? Open in Web Editor NEWAccess to World Bank data for Julia
License: Other
Access to World Bank data for Julia
License: Other
There does not seem to be a convenient way to download data for all countries. In this regard, note that WDI lumps countries together with regions, so there should be some way to download one set without the other.
An error is generated if I try to download data for one year by specifying the same start and end year.
The code:
total_population_2015 = wdi("SP.POP.TOTL", ["BR", "RU", "IN", "CN", "ZA", "US"], 2015)
to search for the population sizes of the listed countries in 2015 returns this error:
UndefVarError: displaysize not defined
in writemime at /Users/juanklopper/.julia/v0.4/DataFrames/src/abstractdataframe/io.jl:181
in sprint at iostream.jl:206
in display_dict at /Users/juanklopper/.julia/v0.4/IJulia/src/execute_request.jl:38
in execute_request at /Users/juanklopper/.julia/v0.4/IJulia/src/execute_request.jl:195
in eventloop at /Users/juanklopper/.julia/v0.4/IJulia/src/IJulia.jl:138
in anonymous at task.jl:447
Any suggestions?
PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
N/A - new package.
Tests fail, but package loads.
Tests fail, but package loads.
means that PackageEvaluator found the tests for your package, executed them, and they didn't pass. However, trying to load your package with using
worked.
This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("WorldBankData")' log
INFO: Cloning cache of WorldBankData from git://github.com/4gh/WorldBankData.jl.git
INFO: Installing HTTPClient v0.1.4
INFO: Installing JSON v0.3.9
INFO: Installing LibCURL v0.1.4
INFO: Installing WorldBankData v0.0.3
INFO: Building LibCURL
INFO: Package database updated
>>> 'using WorldBankData' log
Julia Version 0.3.1
Commit c03f413* (2014-09-21 21:30 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
>>> test log
Running tests:
* countries.jl
* indicators.jl
* wdi.jl
* search_wdi.jl
* example_dl.jl
ERROR: opening file test/example_data.csv: No such file or directory
in open at ./iostream.jl:117
in open at ./iostream.jl:125
in readtable at /home/idunning/pkgtest/.julia/v0.3/DataFrames/src/dataframe/io.jl:931
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in anonymous at no file:10
in include at ./boot.jl:245
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:285
in _start at ./client.jl:354
in _start_3B_1712 at /home/idunning/julia03/usr/bin/../lib/julia/sys.so
while loading /home/idunning/pkgtest/.julia/v0.3/WorldBankData/test/example_dl.jl, in expression starting on line 12
while loading /home/idunning/pkgtest/.julia/v0.3/WorldBankData/test/runtests.jl, in expression starting on line 8
INFO: Testing WorldBankData
============================[ ERROR: WorldBankData ]============================
failed process: Process(`/home/idunning/julia03/usr/bin/julia /home/idunning/pkgtest/.julia/v0.3/WorldBankData/test/runtests.jl`, ProcessExited(1)) [1]
================================================================================
INFO: No packages to install, update or remove
ERROR: WorldBankData had test errors
in error at error.jl:21
in test at pkg/entry.jl:715
in anonymous at pkg/dir.jl:28
in cd at ./file.jl:20
in cd at pkg/dir.jl:28
in test at pkg.jl:67
in process_options at ./client.jl:213
in _start at ./client.jl:354
in _start_3B_1712 at /home/idunning/julia03/usr/bin/../lib/julia/sys.so
>>> end of log
Would you mind releasing the updated compat bounds?
This package worked like a charm a few weeks ago. Tried to use it today and received this error:
LoadError: error compiling get: error compiling setup_easy_handle: could not load library "libcurl"
libcurl: cannot open shared object file: No such file or directory
while loading In[3], in expression starting on line 1
in get at /home/juan/.julia/v0.4/HTTPClient/src/HTTPC.jl:534
in download_parse_json at /home/juan/.julia/v0.4/WorldBankData/src/WorldBankData.jl:16
Please help!
Hello @4gh . I recently stumbled upon your WorldBankData
repository, which I found very helpful! Hence, I started to update the code, in order to reflect some of the more recent updates to Julia
and DataFrames
, and further modified caching bevahior and output format (it now uses TimeData
objects as default). I also added additional tests and modified the documentation. You can find the results of my modifications here.
I now would like to update the code in the official Julia package environment to make it accessible to others as well. Also, I would like to change the WorldBankData repository url in METADATA.jl such that it points to my repository, such that I am able to modify it myself in order to maintain the package. My question hence is whether you would agree to these changes?
Also, I'd kindly modify citation / credits in any way you like to, such that your contribution becomes obvious. Hence, if you would like any changes / extensions to the current acknowledgements, please feel free to contact me.
Kind regards
Christian Groll
I would like to reference this Julia package in a journal publication. What information could I use.
Thanks,
Juan.
Juan H Klopper MMed(Surg)(UFS)Cum Laude
Senior Lecturer in Surgery
University of Cape Town
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.