find_netlogo_home() attempts to locate the installation directory of
NetLogo on the user's system.
Value
A character string specifying the path to the
NetLogo installation directory. Returns an empty string ("") if no
installation can be found.
Details
The function uses the following search order:
Checks the
NETLOGO_HOMEenvironment variable. If set and the directory exists, returns that path.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
Other utility functions:
find_netlogo_console(),
find_netlogo_version(),
inspect_experiment_file(),
parse_netlogo_list()