| serve_dir {xfun} | R Documentation |
Serve a static directory
Description
Serve a directory of files via new_app(). If index.html exists under the
directory, it is shown; otherwise a directory listing is shown. This is
similar to servr::httd() and Python's http.server module.
Usage
serve_dir(dir = ".", name = "xfun-dir", ...)
Arguments
dir |
The directory to serve. |
name |
The app name passed to |
... |
Other arguments passed to |
Value
The app URL, returned invisibly.
Examples
xfun::serve_dir(tempdir())
[Package xfun version 0.59 Index]