Learn R Programming

tmuxr (version 0.2.4)

style_convert: Format and parse style strings

Description

Functions to convert a style string to a named list and back.

Usage

strfstyle(...)

strpstyle(x)

Arguments

...

Named strings and logicals or one named list. Colors and attributes.

x

A string.

Value

A string or named list.

Examples

Run this code
# NOT RUN {
strfstyle(fg = "red", bg = "#00ff00", blink = TRUE, align = FALSE)
strpstyle("fg=red,bg=#00ff00,blink,noalign")
# }

Run the code above in your browser using DataLab