Convert a hierarchical directory into R code
dir2r(
from = ".",
dir_files = TRUE,
dir_all = TRUE,
dir_excluded = NA,
r_seclabel = " --------",
r_chunkheading = FALSE
)Character, R code
Character. The source text of the (R) Markdown syntax text, the R code, the FreeMind mind map code, or the path to the directory.
Logical. Whether to include files. If FALSE, only folders are included. If TRUE, folders and files are included.
Logical. Whether to include all files in a directory. If FALSE, only the names of visible files are included (following Unix-style visibility, that is files whose name does not start with a dot). If TRUE, all file names will be included.
Character. The directories which are not included in the output.
Character. The ending characters indicating sections in R Markdown.
Logical. Whether process the chunk label as headings.