functions2files: Split your file(s) containing multiple functions into...

View source: R/functions2files.R

functions2filesR Documentation

Split your file(s) containing multiple functions into multiple files containing one function.

Description

Split your file(s) containing multiple functions into multiple files containing one function.

Usage

functions2files(filePath, outDir = NULL, keepComments = TRUE, recursive = TRUE)

Arguments

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 TRUE.

recursive

(logical) When filePath is a directory, should the file be listed recursively (with list.files). Default is TRUE.


salix-d/salix_miscFuns documentation built on Aug. 14, 2024, 7:45 p.m.