Learn R Programming

xplain (version 0.2.2)

xplain.overview: Summarizing the content of xplain XML files

Description

xplain.overview summarizes the content of an xplain XML file.

Usage

xplain.overview(xml, show.text=FALSE, preserve.seq=FALSE)

Arguments

xml

Path to the xplain XML file. Can be either a local path or an URL.

show.text

Indicates if the full interpretation/explanation texts shall be included in the summary (optional). Default: FALSE.

preserve.seq

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.

Value

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.

More material on the internet

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

See Also

xplain-package, xplain, xplain.getcall

Examples

Run this code
# NOT RUN {
xml.path <- system.file("", "example_lm.xml", package = "xplain")
xplain.overview(xml.path)
# }

Run the code above in your browser using DataLab