Description Usage Arguments Value Author(s) Examples
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.
1 | 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
1 2 3 4 5 | # Initialization of Spectrino
spnNew()
# Release of Spectrino
#spnFree(TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.