toString.ASTNode | R Documentation |
These methods produce a single string that describes the code an ASTNode represents.
## S3 method for class 'ASTNode'
toString(x, ...)
## S3 method for class 'Label'
toString(x, ..., block_prefix = "%")
x |
(ASTNode) The object to be converted. |
... |
Optional arguments passed to or from methods. |
block_prefix |
(character) Prefix to prepend to basic block IDs. |
A character vector of length 1.
ast = quote_ast(if (x > 3) 42 else "hello")
toString(ast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.