mcg_run_bg.Rd
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)
myClim object
of app (default 1151)
standard output file see callr::r_bg()
(default NULL)
standard error file see callr::r_bg()
(default NULL)
An r_process object see callr::r_bg()
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()
.
if (FALSE) { # \dontrun{
proc <- myClimGui::mcg_run_bg(myClim::mc_data_example_agg)
# after click Return button
data <- proc$get_result()
} # }