knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This is a 'metapackage' support the book Gecomputation with R. 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 for the source code.
You can install the packages needed to reproduce the code in Geocompuation with R by installing the geocompkg package as follows:
devtools::install_github("geocompx/geocompkg")
Alternatively, you may install this package using the R-universe repository:
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 of the book.
# 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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.