Giter Club home page Giter Club logo

eia_2019's Introduction

EIA 2019/2020

Development repository for the digital version of the Estonian Human Development Report 2019/2020

Prerequisites

The digital version of EIA 2019/2020 is developed using completely open source R Bookdown package which allows to combine R statistical computing code with Markdown language to generate books and websites.

About R project: https://www.r-project.org
Downloading R Studio: https://rstudio.com/products/rstudio/download/
Getting started with R Bookdown: https://bookdown.org/yihui/bookdown/get-started.html

Install R and follow the instructions above to get started with Bookdown.

Required packages

EIA uses a number of different R packages to generate the variety of plots diagrams. To install these packages:

install.packages('bookdown')
install.packages('sf')
install.packages('raster')
install.packages('scales')
install.packages('tmap')
install.packages('svglite')
install.packages('showtext')
install.packages('plotly')
install.packages('ggwordcloud')
install.packages('wordcloud')

Local development

For local development:

  • clone the git repository
  • open the EIA_2019_digi.Rproj with RStudio.
  • go to Build -> Configure Build Tools and define the local site directory where you want the site to be generated
  • Click Build Website in RStudio

Note that this will build the Estonian version of the Report. English version is handled as a separate project and can be accessed under the 'en' folder.

Notes on project architecture and overall workings

  • Each chapter of the report is generated based on the corresponding .Rmd file
  • Data required to generate the R plots is located in the 'data' folder
  • Figures exported from R code are located in the 'exported figures' folder. As a default, exporting the figures has been turned off (that is, commented out with a # in the R code chunk of each figure)
  • All the figures that are not generated with R and have been manually designed are located in the 'figures' folder
  • The custom-designed (not Bookdown generated) print versions of the chapters are available in the 'print' folder
  • The report usest Bookdown Gitbook Style (https://bookdown.org/yihui/bookdown/html.html) as a basis, but the styling has been heavily modified and overwritten with CSS (eia.CSS) and custom html code inserted into the .Rmd files.
  • Note that the R code chunks for each R diagram may not necessariliy work independently when run separately from the report (e.g. they may use libraries or themes defined earlier on in the report, but not particularly in that code chunk)
  • English version is generated as a separate project and is accessible under the 'en' folder. Make sure to check the site directories before building โ€“ the directory for the english version has to be "estonian_version_location/en" (where 'estonian_version_location' is you site directory to the Estonian version).

Contributing

Contributions to improve the project (e.g. to clean up the code, make it more efficient, translate the report into more languages etc.) are welcome. Editing the content of the report is not expected and such amendments will not be accepted.

To contribute, create a new branch, make your edits and submit a pull request for review.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.