-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
README.Rmd
64 lines (49 loc) · 1.9 KB
/
README.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
59
60
61
62
63
---
output: github_document
---
<!-- badges: start -->
[![R build status](https://github.com/geocompx/geocompkg/workflows/pkgdown/badge.svg)](https://github.com/geocompx/geocompkg/actions)
[![R build status](https://github.com/geocompx/geocompkg/workflows/R-CMD-check/badge.svg)](https://github.com/geocompx/geocompkg/actions)
<!-- badges: end -->
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# geocompkg
This is a 'metapackage' support the book
[Gecomputation with R](https://r.geocompx.org/).
Installing installing it will give you the dependencies needed to run the code in the book.
The repository also contains additional materials to supplement the book.
See [the vignettes folder](https://github.com/geocompx/geocompkg/tree/master/vignettes) for the source code.
## Installation
You can install the packages needed to reproduce the code in Geocompuation with R by installing the [geocompkg](https://github.com/geocompx/geocompkg) package as follows:
```{r, eval=FALSE}
devtools::install_github("geocompx/geocompkg")
```
Alternatively, you may install this package using the R-universe repository:
```{r, eval=FALSE}
options(repos = c(
geocompx = 'https://geocompx.r-universe.dev',
cran = 'https://cloud.r-project.org'
))
install.packages("geocompkg")
```
If you have any issues, check-out [Chapter 2](https://r.geocompx.org/spatial-class.html) of the book.
```{r, eval=FALSE, echo=FALSE}
# build site:
pkgdown::build_home()
# build vignettes one by one, e.g.
pkgdown::build_article("sea-level-rise")
# pkgdown::build_articles() # for all
# build all articles
articles = list.files(path = "vignettes/", pattern = ".Rmd")
articles = gsub(pattern = ".Rmd", replacement = "", articles)
for(i in articles) {
pkgdown::build_article(i)
}
```