Skip to content

Commit

Permalink
Varios changes to README. Fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed May 11, 2017
1 parent 2ccc08d commit a7e4203
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 29 deletions.
26 changes: 19 additions & 7 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,36 @@ This book will be developed in the open and published by CRC Press in late 2018.

We encourage contributions on any part of the book, including:

- Improvements to the text, e.g. clarifying unclear sentences, fixing typos.
- Improvements to the text, e.g. clarifying unclear sentences, fixing typos (see guidance from [Yihui Xie](https://yihui.name/en/2013/06/fix-typo-in-documentation/) for help on that.
- Changes to the code, e.g. to do things in a more efficient way.
- Suggestions on content (see the project's [issue tracker](https://github.com/Robinlovelace/geocompr/issues)).

Please see [style.md](https://github.com/Robinlovelace/geocompr/blob/master/style.md).
Please see [style.md](https://github.com/Robinlovelace/geocompr/blob/master/style.md) for the book's style.

Note: the `.Rproj` file is configured to build a website not a single page.
To reproduce this [README](https://github.com/Robinlovelace/geocompr/blob/master/README.Rmd) use the following command:

```{r, eval=FALSE}
knitr::knit("README.Rmd")
```

## Reproducing the book

To ease reproducibility, this book is also a package. Installing it from GitHub, will ensure all dependencies are available on your computer:
To ease reproducibility, this book is also a package. Installing it from GitHub will ensure all dependencies are available on your computer (you need [**devtools**](https://github.com/hadley/devtools)):

```{r, eval=FALSE}
if(!require(devtools)) {
install.packages("devtools")
}
devtools::install_github("robinlovelace/geocompr")
```

You need a recent version of the GDAL, GEOS, Proj.4 and UDUNITS libraries installed for this to work on Mac and Linux. See the **sfr** package's [README](https://github.com/edzer/sfr) for information on that.
You need a recent version of the GDAL, GEOS, Proj.4 and UDUNITS libraries installed for this to work on Mac and Linux. See the **sf** package's [README](https://github.com/edzer/sfr) for information on that.

Once the dependencies have been installed you should be able to build and view a local version the book with:

```{r, eval=FALSE}
bookdown::render_book("index.Rmd") # to build the book
browseURL("_book/index.html") # to view it
```


## Book statistics

Expand Down
66 changes: 44 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,72 @@
---
output:
md_document:
variant: markdown_github
---

<!-- README.md is generated from README.Rmd. Please edit that file - rmarkdown::render('README.Rmd', output_format = 'md_document', output_file = 'README.md') -->
Geocomputation with R
=====================

Introduction
============


# Geocomputation with R

# Introduction

This repository hosts the code underlying Geocomputation with R, a book by [Robin Lovelace](http://robinlovelace.net/) and [Jakub Nowosad](https://nowosad.github.io/).

This book will be developed in the open and published by CRC Press in late 2018.

Contributing
------------
## Contributing

We encourage contributions on any part of the book, including:

- Improvements to the text, e.g. clarifying unclear sentences, fixing typos.
- Changes to the code, e.g. to do things in a more efficient way.
- Suggestions on content (see the project's [issue tracker](https://github.com/Robinlovelace/geocompr/issues)).
- Improvements to the text, e.g. clarifying unclear sentences, fixing typos (see guidance from [Yihui Xie](https://yihui.name/en/2013/06/fix-typo-in-documentation/) for help on that.
- Changes to the code, e.g. to do things in a more efficient way.
- Suggestions on content (see the project's [issue tracker](https://github.com/Robinlovelace/geocompr/issues)).

Please see [style.md](https://github.com/Robinlovelace/geocompr/blob/master/style.md) for the book's style.

Note: the `.Rproj` file is configured to build a website not a single page.
To reproduce this [README](https://github.com/Robinlovelace/geocompr/blob/master/README.Rmd) use the following command:


```r
knitr::knit("README.Rmd")
```

Please see [style.md](https://github.com/Robinlovelace/geocompr/blob/master/style.md).
## Reproducing the book

Reproducing the book
--------------------
To ease reproducibility, this book is also a package. Installing it from GitHub will ensure all dependencies are available on your computer (you need [**devtools**](https://github.com/hadley/devtools)):

To ease reproducibility, this book is also a package. Installing it from GitHub, will ensure all dependencies are available on your computer:

``` r
if(!require(devtools)) {
install.packages("devtools")
}
```r
devtools::install_github("robinlovelace/geocompr")
```

You need a recent version of the GDAL, GEOS, Proj.4 and UDUNITS libraries installed for this to work on Mac and Linux. See the **sfr** package's [README](https://github.com/edzer/sfr) for information on that.
You need a recent version of the GDAL, GEOS, Proj.4 and UDUNITS libraries installed for this to work on Mac and Linux. See the **sf** package's [README](https://github.com/edzer/sfr) for information on that.

Book statistics
---------------
Once the dependencies have been installed you should be able to build and view a local version the book with:


```r
bookdown::render_book("index.Rmd") # to build the book
browseURL("_book/index.html") # to view it
```


## Book statistics

An indication of the book's progress over time is illustrated below (to be updated roughly every week as the book progresses).

``` r



```r
ggplot(book_stats) +
geom_area(aes(date, n_pages, fill = chapter), position = "stack") +
ylab("Estimated number of pages")
```

![](README_files/figure-markdown_github/bookstats-1.png)
![plot of chunk bookstats](figure/bookstats-1.png)

Book statistics: estimated number of pages per chapter over time.
Binary file removed README_files/figure-markdown_github/bookstats-1.png
Binary file not shown.
Binary file added figure/bookstats-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a7e4203

Please sign in to comment.