Description Usage Arguments Details Value Examples
The creates a background devd process and returns a processx handle to it.
1 2 3 |
routes |
a character vector of |
log_headers |
Log HTTP headers for each rquest |
live_reload |
When |
live_watch |
Enales |
basic_auth |
Supply a vector of |
open_browser |
if |
tls |
Serve TLS with auto-generated self-signed certificate (in |
crossdomain |
if |
The default configuration (which should cover most use-cases) is to:
have the current working directory be the only route
open an OS browser on process creation
enable full cross-domain resource support
The returned processx::process() object lets you introspect the process, kill the
process and return the last filled buffer from the error and "access" logs.
NOTE: IF you restart, terminate, close, etc the calling R process that started
an underlying devd process you will need to start devd again (it's a child
process of R). This is intentional as it should prevent you from leaving
stale devd processes hanging around.
processx process object
1 2 3 4 5 6 | ## Not run:
dd <- devd_start()
devd_log(dd)
devd_stop(dd)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.