Skip to content

Commit

Permalink
Merge branch 'master' of github.com:worldbank/sdgatlas2018
Browse files Browse the repository at this point in the history
  • Loading branch information
econandrew committed May 23, 2018
2 parents 01c3759 + b302d6a commit b1a0ca7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
11 changes: 9 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Depending on your own system setup you may not need to do all of this. This assu

If you already have some sort of system, possibly running R already, you should probably start from step 2, 5, or 7. The library installs etc will vary depending on your package manager. We may eventually set up a docker image for the project to avoid this.

**WARNING: The first three steps create an insecure RStudio Server instance with default password that anyone can log in to. This purely for ease of instruction. If you follow these steps from the beginning, you should secure your instance behind a firewall and change the RStudio password.**

1. If necessary create your VM, for example I used the default AWS EC2 image.
- allocate public IP address
- open incoming TCP port 8787 in AWS console security group
Expand All @@ -26,16 +28,20 @@ docker ps
docker exec -it <container-id> bash
```

5. install some system packages. From with the docker shell
5. install some system packages. From with the docker shell (if pasting these as a block fails, try pasting one-by-one)

```
apt-get update
# for mogrify
apt-get install imagemagick php-imagick -y
# for proj4
apt-get install libproj-dev proj-data proj-bin -y
# for rgdal
apt-get install libgdal-dev python-gdal gdal-bin -y
# for pdftools
apt-get install libpoppler-cpp-dev -y
```
Expand All @@ -61,6 +67,7 @@ devtools::install_github("worldbank/wbgviz", subdir = "wbgdata")
devtools::install_github("worldbank/wbgviz", subdir = "wbgcharts")
devtools::install_github("worldbank/wbgviz", subdir = "wbgmaps")
devtools::install_github("worldbank/wbgviz", subdir = "wbggeo")
```

9. As of now `ggtreemap` doesn't work with the latest treemapify, so in RStudio console:

Expand Down Expand Up @@ -91,4 +98,4 @@ wbgdata::refresh_wbcache()
```
source("make.R")
make_all("docs", styler = style_atlas_open)
```
```
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Contains any data which was not available via the World Bank or another API.

A complete installation / replication guide is given in [INSTALL.md](INSTALL.md).

This repository depends on the [`wbgviz`](https://github.com/worldbank/sdgatlas2018) custom R packages.
This repository depends on the [`wbgviz`](https://github.com/worldbank/wbgviz) custom R packages.

Some parts depend a submodule of restricted data that we cannot make public.

Expand Down Expand Up @@ -92,4 +92,12 @@ Incorrect/ambiguous source given.

### With history

None.
None.

## Credits

Full credits for the Atlas are extensive, and included in the book/PDF. Credits for the code in this repository are as follows (stats captured when we froze changes and make public):
- @econandrew (227 commits 245,288 ++ 123,955 --)
- @seladore (124 commits 6,023 ++ 2,460 --)
- @tkb (120 commits 76,780 ++ 5,720 --)
- @drkarthi (111 commits 310,041 ++ 9,523 --)

0 comments on commit b1a0ca7

Please sign in to comment.