R: Transform a file and output a customized message

transform_file {styler} | R Documentation

## Transform a file and output a customized message

### Description

Wraps `enc::transform_lines_enc()` and outputs customized messages.

### Usage

    transform_file(path, fun, verbose = FALSE, max_char_path,
      message_before = "", message_after = " [DONE]",
      message_after_if_changed = " *", ...)

### Arguments

`path` | A vector of file paths.
`fun` | A function that returns a character vector.
`verbose` | Should the function show a message with a list of changed files?
`max_char_path` | The number of characters of the longest path. Determines the indention level of `message_after`.
`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 `message_after` if any file was transformed.
`...` | Further arguments passed to `enc::transform_lines_enc()`.

[Package styler version 1.0.2 Index]