View source: R/functions2files.R
functions2files | R Documentation |
Split your file(s) containing multiple functions into multiple files containing one function.
functions2files(filePath, outDir = NULL, keepComments = TRUE, recursive = TRUE)
filePath |
(character) The path(s) of the directory or file(s) you want to split. |
outDir |
(character) Optional. A directory path where to write the new files. If missing, place them in the filePath directory. Can be the same length as filePath since it will be mapp(ly)ed. |
keepComments |
(logical) Whether to keep the comments before the functions and/or at the end of the file. Default is |
recursive |
(logical) When filePath is a directory, should the file be listed recursively (with |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.