transform_code {styler}R Documentation

Transform code from R, Rmd or Rnw files

Description

A wrapper which initiates the styling of either R, Rmd or Rnw files by passing the relevant transformer function for each case.

Usage

transform_code(path, fun, ...)

Arguments

path

A vector with file paths to transform.

fun

A function that returns a character vector.

...

Further arguments passed to transform_utf8().


[Package styler version 1.1.1 Index]