All functions

code_from_editor()

Converts raw editor text to a string of code

decorate()

Builds a with_flair object from either a code chunk or a string object containing source code.

decorate_chunk()

Builds a with_flair object from a code chunk

decorate_code()

Creates an object of the class with_flair

flair-package

A package for adding flair to your displayed source code.

flair() flair_rx() flair_quick() flair_all() flair_args() flair_funs() flair_input_vals()

Formats source code

flair_lines()

Adds decorative formatting (flair) to parts of a string or source code, specified by line(s).

flair_lines(<with_flair>)

S3 method for with_flair objects

flair_sublines()

Helper for flair_lines

knit_print.with_flair()

S3 method for knitting a with_flair object

make_sandwiches()

Recombines "sandwich" elements in proper order

mask() mask_regexp()

Blanks out part of the string

prep_source()

Helper for knit_print.with_flair

print(<with_flair>)

When run interactively, a with_flair object should preview the flaired source code in the viewer pane. (Only if in RStudio.)

scope_and_run()

Runs code from string, in parent environment

scope_run_print()

Runs and prints from string, in parent environment

split_sandwiches()

Separates a string into sections by delimiter

src_to_list()

Takes plain text of knitted code and converts it to a list, in which code sources have the class source.

txt_style() txt_color() txt_colour() txt_size() txt_background() txt_font() txt_bold() txt_emph() txt_ul() txt_tocode() txt_tag()

Wraps text in html or latex code for formatting

with_flair()

Create a with_flair object

wrap_html()

Wraps text in html for formatting