Create a HTML directory listing that is best used for R Markdown documents with HTML outputs, including for HTML presentations.

listing(
  path = ".",
  recurse = TRUE,
  show_hidden = FALSE,
  open = TRUE,
  width = NULL,
  height = NULL,
  elementId = NULL
)

Arguments

path

A path.

recurse

If TRUE recurse fully, if a positive number the number of levels to recurse.

show_hidden

If TRUE show hidden files and folders.

open

Whether the folders should be open by default.

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

elementId

The element ID.

Value

A list of files and folders.

Examples

if (FALSE) {
listing(system.file(package = "dir"))
}