sidekick: Builds a tree structure of an R source file
Description
The sidekick function builds a tree structure of
an R code file by analysing output of the R parserUsage
sidekick(file, encoding = getOption("encoding"))Arguments
file
A file to parse and analyse. If file
is a function, it is first dumped into a file. encoding
Encoding to use. Default to the encoding option (see options) Value
- A Data frame with columns:
- id
- parent
- srcref1
- srcref2
- srcref3
- srcref4
- description