prettify_FCA {prettifyAddins} | R Documentation |
Prettify Java, JSON or Ruby
Description
Prettify Java code, JSON code or Ruby code.
Usage
prettify_FCA(contents = NA, language = NA)
Arguments
contents |
the code to be prettified; there are three possibilities for
this argument:
|
language |
the language of the code, such as |
Value
The pretty code in a character string.
Note
This function requires a connection to Internet.
Examples
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)
[Package prettifyAddins version 2.6.1 Index]