In shiny’s source code (https://github.com/rstudio/shiny/blob/master/R/server.R#L611) I can see that the port
argument to runApp
supports more than just integers. In fact, it seems like it supports UNIX domain sockets, but the documentation does not mention how to use this. What do I need to pass to port
in order to bind to a UNIX domain socket? I’ve tried rmarkdown::run(file = NULL, dir = ".", shiny_args=list(port=list("123", mask=384), quiet=FALSE))
(384 is octal for 0600), but it does not create a socket file.
Good catch! this seems to work
shiny::runApp("tmp.R", port=structure("tmp.sock", mask=384))
PS: I'm an R noob, I hope structure
is the right function to use here.
Me too, but structure
works, thanks!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.