Learn R Programming

mindr (version 1.1.5)

md2mm: Convert markdown or rmarkdown files to mindmap files.

Description

Convert markdown or rmarkdown files to mindmap files.

Usage

md2mm(title = NA, folder = "md", pattern = "*.[R]*md", remove_curly_bracket = FALSE, 
    savefilename = NA, backup = TRUE, bookdown_style = TRUE)

Arguments

title

character. The title of the output file.

folder

character. The folder which contains the input file(s).

pattern

an optional regular expression for filtering the input files. See help(dir).

remove_curly_bracket

logical. Whether to remove #ID in the headers of the markdown file (usually in a 'bookdown' https://github.com/rstudio/bookdown project).

savefilename

character. Valid when savefile == TRUE.

backup

logical. Whether the existing target file, if any, should be saved as backup.

bookdown_style

logical. whether the markdown files are in bookdown style, i.e. index.Rmd at the beginning, # (PART), # (APPENDIX) and # References as an upper level of normal # title

Value

a mindmap file, which can be viewed by common mindmap software, such as 'FreeMind' (http://freemind.sourceforge.net/wiki/index.php/Main_Page) and 'XMind' (http://www.xmind.net).

Examples

Run this code
# NOT RUN {
folder <- system.file("examples/md", package = "mindr")
md2mm(folder = folder)
md2mm(folder = folder, remove_curly_bracket = TRUE)
# }

Run the code above in your browser using DataLab