Skip to contents

find_netlogo_home() attempts to locate the installation directory of NetLogo on the user's system.

Usage

find_netlogo_home()

Value

A character string specifying the path to the NetLogo installation directory. Returns NA if no installation can be found.

Details

The function uses the following search order:

  1. Checks the NETLOGO_HOME environment variable. If set and the directory exists, returns that path.

  2. If the environment variable is not set or the directory does not exist, searches through common installation paths for directories containing "NetLogo" (case-insensitive) in their name. If multiple NetLogo installations are found in the same directory, the last one (alphabetically) is returned.

See also

Examples

# \dontrun{
  find_netlogo_home()
#> /opt/NetLogo 7.0.3
# }