analyse | R Documentation |
Analyse the Parse Tree of an R Script
analyse(x, path = "")
x |
parse tree as returned by |
path |
for internal use only (when this function is called recursively) |
list representing type information on the nodes in the parse tree
# Parse an R script file (here, a file from kwb.utils)
x <- parse("https://raw.githubusercontent.com/KWB-R/kwb.utils/master/R/log.R")
# Analyse the parse tree (This may take some time!)
result <- kwb.code::analyse(x)
# Show the structure of the result list (only 3 levels!)
str(result, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.