-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.Rmd
60 lines (48 loc) · 2.04 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
title: "Elegant and informative maps with **tmap**"
author: "Martijn Tennekes, Jakub Nowosad"
date: "`r Sys.Date()`"
description: "This book teaches how to make elegant and informative maps with the R package tmap."
knit: bookdown::render_book
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: krantz
monofont: "Source Code Pro"
monofontoptions: "Scale=0.7"
bibliography: [r-tmap.bib, packages.bib]
biblio-style: apalike
link-citations: yes
github-repo: r-tmap/tmap-book
url: "https://r-tmap.github.io/tmap-book/"
cover-image: ""
colorlinks: yes
graphics: yes
links-as-notes: true
---
```{r index-1, echo=FALSE}
is_on_ghactions = identical(Sys.getenv("GITHUB_ACTIONS"), "true")
is_online = curl::has_internet()
is_html = knitr::is_html_output()
```
```{asis index-2, echo=is_html}
# Welcome {-}
This is the online home of *Elegant and informative maps with **tmap***, a work-in-progress book on geospatial data visualization with the R-package [tmap](https://github.com/mtennekes/tmap).
```
```{asis index-2-3, echo=is_html}
## How to contribute? {-}
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
- suggestions on content (see [the project’s issue tracker](https://github.com/r-tmap/tmap-book/issues))
```
```{asis index-2-4, echo=is_html}
## Additional information {-}
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>.
```
```{r index-2-2, echo=FALSE, eval=is_html, results="asis"}
if (is_on_ghactions){
cat(paste0("This version of the book was built on GH Actions on ", Sys.Date(), "."))
} else {
cat(paste0("This version of the book was built on ", Sys.Date(), "."))
}
```