R/NetLogoR-package.R

#' The `NetLogoR` package
#'
#' The suggested package \pkg{fastshp} can be installed with
#' `install.packages("fastshp", repos = "https://rforge.net", type = "source")`.
#' The examples included with the package, are located in the R package "examples" folder,
#' which can be found at `system.file(package = "NetLogoR", "examples")`. The 3 specific
#' R examples can be opened here:
#' `file.edit(file.path(system.file(package = "NetLogoR", "examples"), "Ants", "Ants.R"))`,
#' `file.edit(file.path(system.file(package = "NetLogoR", "examples"), "Butterfly", "Butterfly-1.R"))`,
#' or
#' `file.edit(file.path(system.file(package = "NetLogoR", "examples"), "Wolf-Sheep-Predation", "Wolf-Sheep-Predation.R"))`.
"_PACKAGE"

#' @import methods
#' @import raster
NULL

#' Internal CRS usage
#'
#' This is used in various places when converting `agentMatrix` objects to
#' `SpatialPoints` for use with functions, such as [raster::buffer()].
#' None of these functions results in any real geospatial information being conserved,
#' other than distance and angle  calculations. Buffering still occurs on the
#' unit-less World. This is therefore a way to allow `sp` and `raster`
#' functions to work *as if a cell in the World was equal to 1 m*. The resulting
#' answers will be converted back to units of "cells", not "m".
#' The `CRS()` operation is relatively time consuming.
#' Having a single object usable throughout is *much* faster.
#'
#' @keywords internal
#' @rdname projNowhere
.projNowhere <- CRS("+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs")
# This is actually in central Europe; but exact
#  location is not relevant as this is used to calculate
# distances .projNowhere <- CRS("EPSG:32632")

Try the NetLogoR package in your browser

Any scripts or data that you put into this service are public.

NetLogoR documentation built on Aug. 17, 2022, 9:06 a.m.