Learn R Programming

mindr (version 1.2.1)

tree: Draw a mindmap of a directory

Description

Draw a mindmap of a directory

Usage

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.

Examples

Run this code
# 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")
# }

Run the code above in your browser using DataLab