| dir2r | R Documentation |
Convert a hierarchical directory into R code
dir2r(
from = ".",
dir_files = TRUE,
dir_all = TRUE,
dir_excluded = NA,
r_seclabel = " --------",
r_chunkheading = FALSE
)
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_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. |
r_seclabel |
Character. The ending characters indicating sections in R Markdown. |
r_chunkheading |
Logical. Whether process the chunk label as headings. |
Character, R code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.