Source Reference Utilities
These functions extract information from source references.
1 2 3 4 5
An object (typically a function) containing source references.
Whether to include the full path in the filename result.
Whether to list only unique filenames/directories.
Which part of a source reference to extract. Can be abbreviated.
Whether to show the first (or last) location of the object.
Each statement of a function will have its own source reference if the
"keep.source" option is
TRUE. These functions retrieve
all of them.
The components are as follows:
The line number where the object starts or ends.
The column number where the object starts or ends.
"column", but counting bytes, which may differ in case of multibyte characters.
"line", but this ignores
getSrcDirectory return character vectors
holding the filename/directory.
getSrcref returns a list of
"srcref" objects or
NULL if there are none.
getSrcLocation returns an integer vector of the requested type
1 2 3 4 5 6 7 8 9
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.