as_r_expr | R Documentation |
Returns R expression from either R expression or parsed R code
as_r_expr(x) ## S3 method for class ''NULL'' as_r_expr(x) ## Default S3 method: as_r_expr(x) ## S3 method for class 'expression' as_r_expr(x) ## S3 method for class 'character' as_r_expr(x)
x |
either character or R expression vector of R code |
an R expression object with src attribute containing original code that can be used for printing
## Not run: as_r_expr("{\n1+1\n}") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.