Draw a mindmap of a directory

tree(from = ".", to = NULL, root = NA, show_files = FALSE,
    widget_name = NA, width = NULL, height = NULL, elementId = NULL,
    options = markmapOption(preset = "colorful"))

Arguments

from

character. TThe path to the directory.

to

character. The path of the output file.

root

character. a string displayed as the root of the mind map

show_files

logical. Whether to show files in a directory.

widget_name

The file name of the html widget to save.

width

the width of the markmap

height

the height of the markmap

elementId

character.

options

the markmap options

Value

A HTML widget object rendered from a given document.

Details

For LinUx OS and mac OS, the 'tree' command must be pre-installed before using 'show_files = FALSE'.

  • Linux: sudo apt-get install tree

  • mac: install Homebrew first. Then in the terminal: brew install tree.

Examples

# NOT RUN {
tree()
input <- system.file(package = "mindr")
tree(input)
tree(input, root = "mindr", show_files = TRUE)
tree(input, root = "mindr", show_files = TRUE, to = "mindr.mm")
tree(input, root = "mindr", show_files = TRUE, to = "mindr.md")
tree(input, root = "mindr", show_files = TRUE, to = "mindr.txt")
# }