View source: R/transform-files.R
transform_file | R Documentation |
Transforms file contents and outputs customized messages.
transform_file(
path,
fun,
max_char_path,
message_before = "",
message_after = " [DONE]",
message_after_if_changed = " *",
...,
dry
)
path |
A vector with file paths to transform. |
fun |
A function that returns a character vector. |
max_char_path |
The number of characters of the longest path. Determines
the indention level of |
message_before |
The message to print before the path. |
message_after |
The message to print after the path. |
message_after_if_changed |
The message to print after |
... |
Further arguments passed to |
dry |
To indicate whether styler should run in dry mode, i.e. refrain
from writing back to files . |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.