prettify_FCA | R Documentation |
Prettify Java code, JSON code or Ruby code.
prettify_FCA(contents = NA, language = NA)
contents |
the code to be prettified; there are three possibilities for
this argument:
|
language |
the language of the code, such as |
The pretty code in a character string.
This function requires a connection to Internet.
library(prettifyAddins)
code <- c(
"{a: [0,1, 2 ],",
"f: function( x){return x+1}}" # this function will be prettified too
)
## Not run:
cat(prettify_FCA(code, "json"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.