| serve_dir | R Documentation |
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.
serve_dir(dir = ".", name = "xfun-dir", ...)
dir |
The directory to serve. |
name |
The app name passed to |
... |
Other arguments passed to |
The app URL, returned invisibly.
xfun::serve_dir(tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.