| mmm | R Documentation |
Convert almost any file into mind map.
mmm(
input_file = NA,
output_type = c("widget", "mindmap", "markdown", "mermaid"),
input_type = c("auto", "markdown", "mindmap", "R", "dir"),
root = NA,
md_list = FALSE,
md_eq = FALSE,
md_braces = FALSE,
md_bookdown = FALSE,
md_maxlevel = "",
r_seclabel = " --------",
r_chunkheading = FALSE,
dir_files = TRUE,
dir_all = TRUE,
dir_excluded = NA,
dir_to = NA,
dir_quiet = FALSE,
mmd_shape = c("cloud", "rounded_square", "square", "bang", "circle", "hexagon"),
widget_name = NA,
widget_width = NULL,
widget_height = NULL,
widget_elementId = NULL,
widget_options = markmapOption(preset = "colorful")
)
input_file |
Character. The path to the file for input. |
output_type |
Character. The type of the output. It can be |
input_type |
Character. The type of the input text. It can be |
root |
Character. The string displayed as the root (center) of the mind map. |
md_list |
Logical. whether to process lists like headings in the Markdown input. |
md_eq |
Logical. Whether to include LaTeX equations in the Markdown input when converted to other formats. |
md_braces |
Logical. Whether to remove #ID in the headings of the markdown file (usually in a bookdown> project. |
md_bookdown |
Logical. Whether the R Markdown syntax text is in bookdown style, i.e. |
md_maxlevel |
Integer or ”. The maximum level of the markdown headings that are displayed in the mind map. |
r_seclabel |
Character. The ending characters indicating sections in R Markdown. |
r_chunkheading |
Logical. Whether process the chunk label as headings. |
dir_files |
Logical. Whether to include files. If |
dir_all |
Logical. Whether to include all files in a directory. If |
dir_excluded |
Character. The directories which are not included in the output. |
dir_to |
Character. The path of the output directory. |
dir_quiet |
Logical. Whether to display the results of generated directories. |
mmd_shape |
Character. The shape of mermaid mindmap nodes. See Mermaid document. |
widget_name |
Character. The name of the html widget. |
widget_width |
Numeric. The width of the widget. |
widget_height |
Numeric. The height of the widget. |
widget_elementId |
Character. The ID of teh Widget. |
widget_options |
List. Options for the markmap widget. It should be a list passed from the |
The input file type could be .md, .Rmd, .qmd, .R, .mm, .pdf, .docx, .html, .rtf, .odt, .epub, .tex, and any other types which pandoc can convert from. See pandoc for more details.
Desired output.
mp <- mmm(input_file = system.file('examples/mindr-md.Rmd', package = 'mindr'))
mp
# See the vignette for more examples:
vignette('mindr', package = 'mindr')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.