Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore using {callr} to launch shine gadgets in background #38

Open
lianos opened this issue Jul 17, 2020 · 1 comment
Open

Explore using {callr} to launch shine gadgets in background #38

lianos opened this issue Jul 17, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@lianos
Copy link
Member

lianos commented Jul 17, 2020

There may be a way to launch shiny gadgets on a separate thread using callr.

This launches a background R process that seems to be doing something, but I can't find a shiny app anywhere in sight when I hit 127.0.0.1:PORT (7575 here) when I specify the port via global option:

options("shiny.port" = 7575)
efds <- FacileData::exampleFacileDataSet()
dge <- efds %>%
  FacileData::filter_samples(indication == "BLCA") %>%
  flm_def(covariate = "sample_type", numer = "tumor", denom = "normal") %>%
  fdge(mdef, method = "voom")

bg3 <- callr::r_bg(
  shine, 
  list(dge, viewer = "browser"), 
  stdout = "/Users/lianoglou/tmp/log.txt")

Resources

@lianos lianos added the enhancement New feature or request label Jul 17, 2020
@lianos lianos self-assigned this Jul 17, 2020
@lianos lianos changed the title Explore using {callr} to launch shine gadgets in bacground Explore using {callr} to launch shine gadgets in background Jul 17, 2020
@jonocarroll
Copy link
Collaborator

Similar to #44 this is possible via job() with some limitations

job::job({options("shiny.port" = 7575); shiny::runApp(shine(vdge, viewer = "browser"))})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants