-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
82 lines (59 loc) · 2.47 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "##",
fig.path = "man/figures/README-",
out.width = "100%",
warning = FALSE,
message = FALSE
)
```
# geocomplexity <a href="https://ausgis.github.io/geocomplexity/"><img src="man/figures/logo.png" align="right" height="139" alt="geocomplexity website" /></a>
<!-- badges: start -->
[![cran](https://www.r-pkg.org/badges/version/geocomplexity)](https://CRAN.R-project.org/package=geocomplexity)
[![downloads_all](https://badgen.net/cran/dt/geocomplexity?color=orange)](https://CRAN.R-project.org/package=geocomplexity)
[![downloads_month](https://cranlogs.r-pkg.org/badges/geocomplexity)](https://CRAN.R-project.org/package=geocomplexity)
[![r-universe](https://ausgis.r-universe.dev/badges/geocomplexity?color=yellow)](https://ausgis.r-universe.dev/geocomplexity)
<!-- badges: end -->
**Mitigating Spatial Bias Through Geographical Complexity**
## Installation
- Install from [CRAN](https://CRAN.R-project.org/package=geocomplexity) with:
``` r
install.packages("geocomplexity", dep = TRUE)
```
- Install development binary version from [R-universe](https://ausgis.r-universe.dev/geocomplexity) with:
``` r
install.packages('geocomplexity',
repos = c("https://ausgis.r-universe.dev",
"https://cloud.r-project.org"),
dep = TRUE)
```
- Install development source version from [GitHub](https://github.com/ausgis/geocomplexity) with:
``` r
# install.packages("devtools")
devtools::install_github("ausgis/geocomplexity",
build_vignettes = TRUE,
dep = TRUE)
```
Please ensure that appropriate **C++** compilation environment is configured and **Rcpp** & **RcppArmadillo** is properly installed in advance if you want to install **geocomplexity** from source. See the next topic on C++ Settings for more information.
## Set up to use **C++** compilation environment
**Windows**:
- Download the Rtools installer that matches your version of R from <https://cran.r-project.org/bin/windows/Rtools/>
- Run the installer, `Rtools.exe`, keeping the default settings.
**Linux**
Debian/Ubuntu:
```{.sh}
apt-get update
apt-get install r-base-dev
```
Fedora/RedHat: should be set up already.
**MacOS**
- Install the Xcode command line tool.
- Then, in the terminal:
```{.sh}
xcode-select --install
```