styler (version 1.0.9000)

transform_code: Transform code from R or Rmd files

Description

A wrapper for enc::transform_lines_enc() which initiates the styling of either R or Rmd files by passing the relevant transformer function for each case.

Usage

transform_code(path, fun, verbose = FALSE, ...)

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?

...

Further arguments passed to enc::transform_lines_enc().