This function starts the Shiny application in new process. The R console doesn't freeze.

mcg_run_bg(data, port = 1151, stdout = NULL, stderr = NULL)

Arguments

data

myClim object

port

of app (default 1151)

stdout

standard output file see callr::r_bg() (default NULL)

stderr

standard error file see callr::r_bg() (default NULL)

Value

An r_process object see callr::r_bg()

Details

The function mcg_run_bg doesn't open automatically app. You must open it manually in browser with link http://localhost:1151 (default). The result of function is r_process object see callr::r_bg(). If you edit interactively, you can get myClim object returned from app by call function r_process$get_result().

Examples

if (FALSE) { # \dontrun{
     proc <- myClimGui::mcg_run_bg(myClim::mc_data_example_agg)
     # after click Return button
     data <- proc$get_result()
} # }