Skip to content

SpatLyu/geocomplexity

Repository files navigation

geocomplexity

CRAN r-universe

The goal of geocomplexity is to support geocomplexity computation and applications.

Overview

Full document of the most recent release of geocomplexity is online: https://spatlyu.github.io/geocomplexity/

Installation

From source:

You can install the development version of geocomplexity from github with:

# install.packages("devtools")
devtools::install_github("SpatLyu/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.

From binary

You can also install the binary version of geocomplexity from r-universe:

install.packages("geocomplexity", 
                 repos = c("https://spatlyu.r-universe.dev",
                           "https://cran.rstudio.com/"),
                 dep = TRUE)

Set up to use C++ compilation environment

Linux

Debian/Ubuntu:

apt-get update
apt-get install r-base-dev

Fedora/RedHat: should be set up already.

MacOS

Option 1

Option 2

  • Install the current release of full Xcode from the Mac App Store
  • Within XCode go to Preferences -> Downloads and install the Command Line Tools
  • More convenient but installs a lot you don’t need

Windows: