R package to implement spatially explicit biophysical models