Wraps utf8::transform_lines_enc()
and outputs customized messages.
transform_file(path, fun, verbose = FALSE, max_char_path,
message_before = "", message_after = " [DONE]",
message_after_if_changed = " *", ...)
A vector of file paths.
A function that returns a character vector.
Should the function show a message with a list of changed files?
The number of characters of the longest path. Determines
the indention level of message_after
.
The message to print before the path.
The message to print after the path.
The message to print after message_after
if
any file was transformed.
Further arguments passed to utf8::transform_lines_enc()
.