Closed ColinFay closed 6 years ago
Indeed it does. I was convinced (for a reason I can't find back) that id = servr::httd(daemon = TRUE)
returned a NULL
, hence the weird parsing of the capture.output
.
Sorry for the PR, then.
Thanks.
The function =
returns the RHS value invisibly: https://yihui.name/en/2017/06/top-level-r-expressions/
Here's the context: I want to be able to programmatically launch and stop a servr.daemon from a shiny app, and for now I'm doing this weird thing to catch the daemon id and close it with a button: (reprex here, of course)
So my PR consists of just returning the id of the daemon, so that I can programmatically do :
Which would be cleaner I guess: