xplain.overview
summarizes the content of an xplain XML file.
xplain.overview(xml, show.text=FALSE, preserve.seq=FALSE)
Path to the xplain XML file. Can be either a local path or an URL.
Indicates if the full interpretation/explanation texts shall be included in the summary (optional). Default: FALSE
.
Indicates if the overview results for the interpretation/explanation texts shall be shown in the same sequence as they appear in the XML file (optional). If FALSE
, the results are sorted, e.g. by package, function, language and complexity level. Default: FALSE
.
A data frame summarizing the XML file. Each row corresponds to a <title>
or <text>
element in the xplain XML file.
The column structure is as follows:
Package
: The package to which the explained function belongs.
Function
: The explained function.
Type
: Indicates whether the element is a <title>
or a <text>
element.
Language
: Language of the element (also considering inheritance from higher-level XML elements).
Level
: Complexity level of the element (also considering inheritance from higher-level XML elements).
Result object
: Element of the explained function's return object to which the <title>
or <text>
element relates (if any).
Iteration
: Type of iteration (if any). Value of the foreach
attribute of the <text>
element.
Has R code
: Indicates if the <text>
element includes R code.
Uses return obj.
: Indicates if the <text>
element refers to the explained function's return object.
Text
: The text of the respective <text>
or <title>
element (including R code). This column is only included if show.text=TRUE
.
To learn more about the structure of xplain XML files, go to the xplain
help page or consult the web tutorial.
Web tutorial on how to work with xplain: https://www.zuckarelli.de/xplain/index.html xplain cheat sheet: https://www.zuckarelli.de/xplain/xplain_cheatsheet.pdf
# NOT RUN {
xml.path <- system.file("", "example_lm.xml", package = "xplain")
xplain.overview(xml.path)
# }
Run the code above in your browser using DataLab