start_gui | R Documentation |
Starts the FastRet GUI
start_gui(port = 8080, host = "0.0.0.0", reload = FALSE, nw = 2, nsw = 1)
port |
The port the application should listen on |
host |
The address the application should listen on |
reload |
Whether to reload the application when the source code changes |
nw |
The number of worker processes started. The first worker always listens for user input from the GUI. The other workers are used for handling long running tasks like model fitting or clustering. If |
nsw |
The number of subworkers each worker is allowed to start. The higher this number, the faster individual tasks like model fitting can be processed. A value of 1 means that all subprocesses will run sequentially. |
If you set nw = 3
and nsw = 4
, you should have at least 16 cores, one core for the shiny main process. Three cores for the three worker processes. And 12 cores (3 * 4) for the subworkers. For the default case, nworkers = 1
and nsw = 2
, you should have at least 4 cores.
A shiny app. This function returns a shiny app that can be run to interact with the model.
if (interactive()) start_gui()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.