Learn R Programming

styler (version 0.0-8)

transform_code: Transform code from R or Rmd files

Description

A wrapper for utf8::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 utf8::transform_lines_enc().