Skip to content

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

Description

@lianos

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions