Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transform_mixed

Transform mixed contents


Description

Applies the supplied transformer function to code chunks identified within an Rmd or Rnw file and recombines the resulting (styled) code chunks with the text chunks.

Usage

transform_mixed(lines, transformer_fun, filetype)

Arguments

lines

A character vector of lines from an Rmd or Rnw file.

transformer_fun

A styler transformer function.

filetype

A string indicating the filetype - either 'Rmd' or 'Rnw'.


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.