Highlight, Annotate, and Format your R Source Code


[Up] [Top]

Documentation for package ‘flair’ version 0.0.2

Help Pages

flair-package A package for adding flair to your displayed source code.
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 Formats source code
flair_all Formats source code
flair_all.default Formats source code
flair_all.with_flair Formats source code
flair_args Formats source code
flair_funs Formats source code
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.default 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_quick Formats source code
flair_rx Formats source code
flair_rx.default Formats source code
flair_rx.with_flair Formats source code
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 Blanks out part of the string
mask_quick Blanks out part of the string
mask_rx Blanks out part of the string
mask_rx.default Blanks out part of the string
mask_rx.with_flair 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_background Wraps text in html or latex code for formatting
txt_bold Wraps text in html or latex code for formatting
txt_color Wraps text in html or latex code for formatting
txt_colour Wraps text in html or latex code for formatting
txt_emph Wraps text in html or latex code for formatting
txt_font Wraps text in html or latex code for formatting
txt_size Wraps text in html or latex code for formatting
txt_style Wraps text in html or latex code for formatting
txt_tag Wraps text in html or latex code for formatting
txt_tocode Wraps text in html or latex code for formatting
txt_ul Wraps text in html or latex code for formatting
with_flair Create a 'with_flair' object
word_to_blanks helper for mask
wrap_html Wraps text in html for formatting