knitr::opts_chunk$set(echo = TRUE)


To perform processing with the hybrid optimization, using the hybridSA package, there are a number of packages you should have installed for your R environment.

Running the following commands should install most of these packages on your machine:

pkgs <- c("ggplot2", "knitr", "devtools", "rmarkdown", "spacetime", "mapproj", 
          "purrr", "pryr", "readr", "beepr", "lubridate", "magrittr", 
          "assertthat", "nloptr", "dplyr", "tidyr", "automap")

devtools::install_github("hadley/dplyr") # fixes bugs in version 0.4.3

Additionally, you will also need to install the rgdal and gstat packages. Depending on the operating system you're using, this might require different things. Below are some possible steps you might try, but since software is constantly being updated, you might need to look elsewhere to address the specific problems you might be having.

Installing rgdal

For the rgdal package to work properly, you should also have gdal installed on your machine.

Once you have gdal installed, then try running install.packages as above. If that doesn't work and yields some error, then try:

install.packages("rgdal", type = "source")

If you get a message saying that the rgeos library needs to be installed, but that fails, also try installing geos by

brew install geos

from the command line.


Installing gstat

First try to install gstat via install.packages as above (first without type = "source").

nabilabd/hybridSA documentation built on May 23, 2017, 9:34 a.m.