Skip to contents

find_netlogo_console() attempts to locate the NetLogo executable file on the user's system.

It first checks the NETLOGO_CONSOLE environment variable. If this variable is not set or the file does not exist, it constructs the path to the executable based on the provided netlogo_home directory.

Usage

find_netlogo_console(netlogo_home = find_netlogo_home())

Arguments

netlogo_home

(optional) A character string specifying the path to the NetLogo installation directory. If not provided, the function will try to find it automatically using find_netlogo_home() (default: find_netlogo_home()).

Value

A character string specifying the path to the NetLogo executable file. If the file cannot be found, an empty string is returned.

Examples

if (FALSE) { # \dontrun{
  find_netlogo_console()
} # }