the code to be prettified; there are three possibilities for
this argument:
NA (default), to use the file currently opened in RStudio;
the path to a file;
or the code given as a character vector
language
the language of the code, such as "json";
see getPrettifiableLanguages;
if the contents are read from a file and language=NA, then the
language is guessed from the file extension
library(prettifyAddins)
code <- c(
"{a: [0,1, 2 ],",
"f: function( x){return x+1}}"# this function will be prettified too)
if (FALSE) {
cat(prettify_FCA(code, "json"))}