spnNew {spectrino} | R Documentation |
Check if R-object of Spectrino exists, and if not, creates/initializes Spectrino object/application.
The command recommendable, but optional - it will be called, when any command is executed, if the R-object of Spectrino does not exists.
If you use spnNew in your code, depending of the speed of your hardware and the size of the data Spectrino loads at start you may need to add some delay (e.g. Sys.sleep(1)) after the command in order to give some time to Spectrino to finish loading the data.
spnNew(TimeOut = 2, Host = "127.0.0.1", Port = 9876)
TimeOut |
time to wait [s] for spectrino application to load and reply, default is 2. In case of time-out error maybe your hardware is not that fast and you may need to increase the TimeOut. |
Host |
Host IP address for the websocket server, the default is 127.0.0.1 which is localhost. Do not change it unless you really know what you are doing. |
Port |
Port of web-socket communication, default is 9876. Do not change it unless you really know what you are doing. |
spnNew
- Gets back TRUE if the Spectrino object exists or has been created; otherwise - FALSE.
Teodor Krastev
# Initialization of Spectrino spnNew() # Release of Spectrino spnFree(TRUE)