The following post was made trying to understand the functions withing the gdistance R package by Jacob van...