R Documentation |
Be frustrated with print()
and cat()
? Try Print()
!
Run examples to see what it can do.
Print(...)
Glue(...)
... |
Character strings enclosed by Character strings enclosed by Long strings are broken by line and concatenated together. Leading whitespace and blank lines from the first and last lines are automatically trimmed. |
Possible formats/colors that can be used in "<< >>"
include:
(1) bold, italic, underline, reset, blurred, inverse, hidden, strikethrough;
(2) black, white, silver, red, green, blue, yellow, cyan, magenta;
(3) bgBlack, bgWhite, bgRed, bgGreen, bgBlue, bgYellow, bgCyan, bgMagenta.
See more details in glue::glue()
and glue::glue_col()
.
Formatted text.
Print()
: Paste and print strings.
Glue()
: Paste strings.
name = "Bruce"
Print("My name is <<underline <<bold {name}>>>>.
<<bold <<blue Pi = {pi:.15}.>>>>
<<italic <<green 1 + 1 = {1 + 1}.>>>>
sqrt({x}) = <<red {sqrt(x):.3}>>", x=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.