Description Usage Arguments Value Examples
Generate hierarchical directories according to the outline of R code
1 2 3 4 5 6 7 |
from |
Character. The source text of the (R) Markdown syntax text, the R code, the FreeMind mind map code, or the path to the directory. |
dir_to |
Character. The path of the output directory. |
md_list |
Logical. whether to process lists like headings in the Markdown input. |
md_bookdown |
Logical. Whether the R Markdown syntax text is in bookdown style, i.e. |
dir_quiet |
Logical. Whether to display the results of generated directories. |
Directory generated.
1 2 3 4 5 6 7 8 | input <- system.file("examples/mindr-r.R", package = "mindr")
input_txt <- readLines(input, encoding = "UTF-8")
output <- file.path(tempdir(), "mindr")
r2dir(input_txt, output)
message("Input: ", input, "\nOutput: ", output)
# file.show(input) # Open the input file system2('open', output) # Open the
# output dir in explorer. unlink(output, recursive = TRUE) # remove the output
# file
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.