split_code_file {fritools2} | R Documentation |
Split a Code File Into Multiple Files
Description
I tend to find files with dozens of functions. They don't read well. So I split a code file into multiple files each containing a single function.
Usage
split_code_file(
file,
output_directory = tempdir(),
encoding = getOption("encoding"),
write_to_disk = getOption("write_to_disk")
)
Arguments
file |
The code file to be split. |
output_directory |
Where to create the new files. |
encoding |
The encoding passed to |
write_to_disk |
Set the output_directory to
|
Value
Invisibly
a vector of paths to the new
files.
See Also
Other file utilities:
clipboard_path()
,
delete_trailing_blank_lines()
,
delete_trailing_whitespace()
,
develop_test()
,
file_copy()
,
file_modified_last()
,
file_save()
,
find_files()
,
get_lines_between_tags()
,
get_mtime()
,
get_unique_string()
,
grep_file()
,
is_files_current()
,
is_path()
,
paths
,
search_files()
,
touch()
[Package fritools2 version 4.1.0 Index]