This is an old revision of the document!


PHP's gd library is missing or unable to create PNG images

External Communication

Dinamica EGO can communicate with external applications by using the functors under the 'External Communication' folder in the Library.
To use the external communication tools, make sure a session is active by checking the status bar for 'Session name: name' (on) or 'External communication: off' (off).

R

The package 'Dinamica' is necessary for sending and receiving data. To install the package, do:

install.packages(c("Rcpp", "RcppProgress", "Dinamica"))

You can also install the package using the menu in RStudio:

Tools -> Install Packages...

Session

To connect to an existing session:

Dinamica::openSession("DinamicaEGO") where "DinamicaEGO" is the session name.

Send/Receive Data

Number:

Dinamica::receiveNumber()
Dinamica::sendNumber(number) where 'number' is the number to send.

List of numbers:

Dinamica::receiveNumberVector()
Dinamica::sendNumberVector(numberVector) where 'numberVector' is a collection of numbers.

Lookup Table:

Dinamica::receiveLookupTable()
Dinamica::sendLookupTable(keys, values) where 'keys' and 'values' are collections of numbers (of same size).